Bug 1450017 - Part VII, Remove unused CSS rules in macOS resizer.css draft
authorTimothy Guan-tin Chien <timdream@gmail.com>
Tue, 10 Apr 2018 07:41:52 +0800
changeset 788006 7f330534d24a59b378b0d095c4f6b2662a9bb420
parent 788005 60f81c52cdefd4b0c79eb2e7643bdbc09645dd6e
child 788007 8150aa0682cc8278a3d3aaa0eae437bd5b3b9e9e
child 788011 bc5e975ae619e072b9c9053bf85ebd604bb8af49
child 788577 d9b2ce89c8e92752acb2f3b6a1281d3b61aba933
child 788582 a6278b2d3e25ea63c017fe82a5031beb9fd2d442
push id107872
push usertimdream@gmail.com
push dateWed, 25 Apr 2018 20:44:34 +0000
bugs1450017, 556645, 636564
milestone61.0a1
Bug 1450017 - Part VII, Remove unused CSS rules in macOS resizer.css - There is no longer any resizer[type="window] in the tree (was added in bug 556645) - min-width/height was added to ensure the minimum dimensions, but intrinsic size of native and non-native resizer widget are already bigger than the size set (and there is no way to overwrite it). See bug 636564 comment 71. MozReview-Commit-ID: A8uYkwoJiVy
toolkit/themes/osx/global/resizer.css
--- a/toolkit/themes/osx/global/resizer.css
+++ b/toolkit/themes/osx/global/resizer.css
@@ -4,43 +4,36 @@
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
 resizer {
   -moz-appearance: resizer;
   background: url("chrome://global/skin/icons/resizer.png") no-repeat;
   background-size: 100% 100%;
   cursor: se-resize;
-  min-width: 15px;
   width: 15px;
-  min-height: 15px;
   height: 15px;
 }
 @media (min-resolution: 2dppx) {
   resizer {
     background-image: url("chrome://global/skin/icons/resizer@2x.png");
     background-size: 100% 100%;
   }
 }
 
-resizer[type="window"] {
-  display: none;
-}
-
 resizer:-moz-locale-dir(rtl) {
   background: url("chrome://global/skin/icons/resizer-rtl.png") no-repeat;
 }
 @media (min-resolution: 2dppx) {
   resizer:-moz-locale-dir(rtl) {
     background-image: url("chrome://global/skin/icons/resizer-rtl@2x.png");
     background-size: 100% 100%;
   }
 }
 
-
 resizer[dir="left"],
 resizer[dir="bottomleft"],
 resizer[dir="bottomstart"] {
   transform: scaleX(-1);
 }
 
 resizer[dir="bottomleft"],
 resizer[dir="bottomstart"]:not(:-moz-locale-dir(rtl)),