Bug 1008197. We need to always have the overlay styles on scrollbars on mac because whether we have overlay scrollbars changes dynamically. r=roc
authorTimothy Nikkel <tnikkel@gmail.com>
Fri, 09 May 2014 23:59:33 -0500
changeset 182507 73108558281deed47004be77bf9fe8dacd49a1e2
parent 182506 d2242d05c93c54a7e7bbc40e8157f54c3ccfa064
child 182508 f6d51fa4f476f427a2d2f2de50edafc69d0892db
push id26764
push usercbook@mozilla.com
push dateMon, 12 May 2014 11:35:17 +0000
treeherdermozilla-central@a64ed5aba131 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1008197, 994861
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1008197. We need to always have the overlay styles on scrollbars on mac because whether we have overlay scrollbars changes dynamically. r=roc This backs out the mac part of bug 994861. Windows doesn't change overlay scrollbars dynamically, so the Windows part of bug 994861 can stay.
toolkit/themes/osx/global/nativescrollbars.css
--- a/toolkit/themes/osx/global/nativescrollbars.css
+++ b/toolkit/themes/osx/global/nativescrollbars.css
@@ -8,33 +8,33 @@
 scrollbar {
   -moz-appearance: scrollbar;
   -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar);
   cursor: default;
   background-color: white;
   pointer-events: auto;
 }
 
-@media all and (-moz-overlay-scrollbars) {
-  scrollbar[root="true"] {
-    position: relative;
-    z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
-  }
-
-  scrollbar:not([active="true"]),
-  scrollbar[disabled="true"] {
-    visibility: hidden;
-  }
+scrollbar[root="true"] {
+  position: relative;
+  z-index: 2147483647; /* largest positive value of a signed 32-bit integer */
 }
 
 html|select[size]:not([size="0"]):not([size="1"]) > scrollbar,
 html|select[multiple] > scrollbar {
   -moz-appearance: scrollbar-small;
 }
 
+@media all and (-moz-overlay-scrollbars) {
+  scrollbar:not([active="true"]),
+  scrollbar[disabled="true"] {
+    visibility: hidden;
+  }
+}
+
 /* ..... track ..... */
 
 slider {
   -moz-appearance: scrollbartrack-horizontal;
 }
 
 slider[orient="vertical"] {
   -moz-appearance: scrollbartrack-vertical;