test different rules for mac detection
[themes.git] / LCARStrek / global / global.css
index 97eccb7ac4c478411384fe960cb7dd3317301232..32665b64e75751019f4f0b1ff60d0e1661da4843 100644 (file)
@@ -48,7 +48,7 @@ toolbaritem > menubar {
   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
 }
 
-@supports ( -moz-appearance: -moz-mac-unified-toolbar ) {
+@supports ( :-moz-system-metric(mac-graphite-theme) ) {
   /* this is a usable workaround to detect we're on Mac OS */
   toolbar.chromeclass-menubar {
     -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
@@ -56,6 +56,22 @@ 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 ) {
+  /* this is a usable workaround to detect we're on Mac OS */
+  toolbar {
+    border: 1px solid green !important;
+  }
+}
+
 /* ::::: root elements ::::: */
 
 window,