Bug 1154814 - Move font rules from 'rt' to 'rtc, rt' and make text-emphasis conditional. r=heycam, a=sledru
authorXidorn Quan <quanxunzhen@gmail.com>
Thu, 16 Apr 2015 13:42:56 +1200
changeset 267101 c4361659651c98bca80ddf8b249db695d3c66211
parent 267100 d64158d89e176bd4ca88f0f1277316a9b356ef53
child 267102 8eab810238ea1aad185dff1610dcd5a89fb81f46
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam, sledru
bugs1154814
milestone39.0a2
Bug 1154814 - Move font rules from 'rt' to 'rtc, rt' and make text-emphasis conditional. r=heycam, a=sledru
layout/style/html.css
--- a/layout/style/html.css
+++ b/layout/style/html.css
@@ -797,26 +797,30 @@ marquee[direction="up"], marquee[directi
     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;
+    font-variant-east-asian: ruby;
+  }
+  @supports (text-emphasis: none) {
+    rtc, rt {
+      text-emphasis: none;
+    }
   }
   rtc:lang(zh), rt:lang(zh) {
     ruby-align: center;
   }
   rtc:lang(zh-TW), rt:lang(zh-TW) {
     font-size: 30%; /* bopomofo */
   }
   rtc > rt {