Bug 1164279 - Disable font-variant-east-asian: ruby for <rt> on Windows. r=jfkthame, a=sylvestre
authorXidorn Quan <quanxunzhen@gmail.com>
Mon, 14 Sep 2015 17:35:13 +0800
changeset 276825 7bea04fcb6d478033fdb23cbb6cdba7f1558c186
parent 276824 097b17458da1f8a7b1e159f559d7af5122600f66
child 276826 02fe292b9b565d7dd23c7ba291a785dd645eb85d
push idunknown
push userunknown
push dateunknown
reviewersjfkthame, sylvestre
bugs1164279
milestone42.0
Bug 1164279 - Disable font-variant-east-asian: ruby for <rt> on Windows. r=jfkthame, a=sylvestre
layout/style/html.css
layout/style/jar.mn
--- a/layout/style/html.css
+++ b/layout/style/html.css
@@ -806,17 +806,22 @@ marquee[direction="up"], marquee[directi
   }
   rtc {
     display: ruby-text-container;
   }
   rtc, rt {
     white-space: nowrap;
     font-size: 50%;
     line-height: 1;
+%ifndef XP_WIN
+    /* The widely-used Windows font Meiryo doesn't work fine with this
+     * setting, so disable this on Windows. We should re-enable it once
+     * Microsoft fixes this issue. See bug 1164279. */
     font-variant-east-asian: ruby;
+%endif
   }
   @supports (text-emphasis: none) {
     rtc, rt {
       text-emphasis: none;
     }
   }
   rtc:lang(zh), rt:lang(zh) {
     ruby-align: center;
--- a/layout/style/jar.mn
+++ b/layout/style/jar.mn
@@ -1,15 +1,15 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 toolkit.jar:
 *  res/ua.css    (ua.css)
-   res/html.css    (html.css)
+*  res/html.css    (html.css)
    res/quirk.css    (quirk.css)
    res/full-screen-override.css    (full-screen-override.css)
    res/plaintext.css     (plaintext.css)
    res/viewsource.css    (viewsource.css)
    res/counterstyles.css (counterstyles.css)
    res/noscript.css (noscript.css)
    res/noframes.css (noframes.css)
 *  res/forms.css    (forms.css)