Bug 1111463 part 2 - Add styles in html.css and ua.css. r=dbaron
authorXidorn Quan <quanxunzhen@gmail.com>
Mon, 12 Jan 2015 12:52:19 +1100
changeset 223236 82612d0c8c73cb1b0d3713ca4d18f0f793bddd99
parent 223235 70e558ca91634f889d6557960f6baad8c9607256
child 223237 0cbf1255694dbd5fe91a8fed3dfdc4955445336b
push id10769
push usercbook@mozilla.com
push dateMon, 12 Jan 2015 14:15:52 +0000
treeherderfx-team@0e9765732906 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdbaron
bugs1111463
milestone37.0a1
Bug 1111463 part 2 - Add styles in html.css and ua.css. r=dbaron
layout/style/html.css
layout/style/ua.css
--- a/layout/style/html.css
+++ b/layout/style/html.css
@@ -756,8 +756,42 @@ marquee[direction="up"], marquee[directi
 }
 
 /* PRINT ONLY rules follow */
 @media print {
 
   marquee { -moz-binding: none; }
 
 }
+
+/* Ruby */
+
+@supports (display: ruby) {
+  ruby {
+    display: ruby;
+  }
+  rb {
+    display: ruby-base;
+    white-space: nowrap;
+  }
+  rp {
+    display: none;
+  }
+  rt {
+    display: ruby-text;
+    font-variant-east-asian: ruby;
+    text-emphasis: none;
+  }
+  rtc {
+    display: ruby-text-container;
+  }
+  rtc, rt {
+    white-space: nowrap;
+    font-size: 50%;
+    line-height: 1;
+  }
+  rtc > rt {
+    font-size: inherit;
+  }
+  ruby, rb, rt, rbc, rtc {
+    unicode-bidi: isolate;
+  }
+}
--- a/layout/style/ua.css
+++ b/layout/style/ua.css
@@ -68,17 +68,17 @@
 }
 
 *|*::-moz-table-cell {
   display: table-cell !important;
   white-space: inherit;
 }
 
 /* Ruby */
-@supports(display:ruby) {
+@supports (display:ruby) {
   *|*::-moz-ruby {
     display: ruby;
   }
   *|*::-moz-ruby-base {
     display: ruby-base;
   }
   *|*::-moz-ruby-text {
     display: ruby-text;