test rule for non-mac detection
[themes.git] / LCARStrek / global / global.css
index 32665b64e75751019f4f0b1ff60d0e1661da4843..537e261bb7c01889c2965eb706b08fc6567c44cb 100644 (file)
@@ -48,8 +48,8 @@ toolbaritem > menubar {
   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
 }
 
-@supports ( :-moz-system-metric(mac-graphite-theme) ) {
-  /* this is a usable workaround to detect we're on Mac OS */
+@media (-moz-mac-graphite-theme), (-moz-mac-lion-theme), (-moz-mac-yosemite-theme) {
+  /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
   toolbar.chromeclass-menubar {
     -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
     border-bottom: none;
@@ -58,17 +58,10 @@ toolbaritem > menubar {
 
 /* HACK TEST ONLY: try several mac supports rules! */
 
-@supports ( :-moz-system-metric(mac-graphite-theme) ) {
-  /* this is a usable workaround to detect we're on Mac OS */
-  window {
-    background-color:red !important;
-  }
-}
-
-@supports ( color: -moz-mac-accentface ) {
+@media (-moz-mac-graphite-theme: 0) and (-moz-mac-lion-theme: 0) and (-moz-mac-yosemite-theme: 0) {
   /* this is a usable workaround to detect we're on Mac OS */
-  toolbar {
-    border: 1px solid green !important;
+  toolbox {
+    border: 1px solid blue !important;
   }
 }