Bug 1043706 - Wrap ruby-specific rules in ua.css in a "@supports" clause (to avoid spamming parse errors when ruby is disabled). r=dholbert
authorSusanna Bowen <sgbowen8@gmail.com>
Fri, 25 Jul 2014 15:53:00 +0200
changeset 196282 fc4786cdbbb8742612880df3a5c9b0cbc948a141
parent 196281 57e293375c811547c4a3e579090ff7fd1d033157
child 196283 3208f341b92601ed6c2872dccb48e1c4fa49bfd8
push id27208
push usercbook@mozilla.com
push dateMon, 28 Jul 2014 13:33:20 +0000
treeherdermozilla-central@70b3fc807a70 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1043706
milestone34.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 1043706 - Wrap ruby-specific rules in ua.css in a "@supports" clause (to avoid spamming parse errors when ruby is disabled). r=dholbert
layout/style/ua.css
--- a/layout/style/ua.css
+++ b/layout/style/ua.css
@@ -68,30 +68,32 @@
 }
 
 *|*::-moz-table-cell {
   display: table-cell !important;
   white-space: inherit;
 }
 
 /* Ruby */
-*|*::-moz-ruby {
-  display: ruby;
-}
-*|*::-moz-ruby-base {
-  display: ruby-base;
-}
-*|*::-moz-ruby-text {
-  display: ruby-text;
-}
-*|*::-moz-ruby-base-container {
-  display: ruby-base-container;
-}
-*|*::-moz-ruby-text-container {
-  display: ruby-text-container;
+@supports(display:ruby) {
+  *|*::-moz-ruby {
+    display: ruby;
+  }
+  *|*::-moz-ruby-base {
+    display: ruby-base;
+  }
+  *|*::-moz-ruby-text {
+    display: ruby-text;
+  }
+  *|*::-moz-ruby-base-container {
+    display: ruby-base-container;
+  }
+  *|*::-moz-ruby-text-container {
+    display: ruby-text-container;
+  }
 }
 
 /* Lists */
 
 *|*::-moz-list-bullet, *|*::-moz-list-number {
   display: inline;
   vertical-align: baseline;
   /* TODO: Replace this with font-variant-numeric:tabular-nums once the