Bug 1165538 part 3 - Apply -moz-min-font-size-ratio to rt elements and add test. r=heycam

--HG--
extra : source : 9d94998817bfb618e6bd0fe39f3f6924d1c2e266
This commit is contained in:
Xidorn Quan 2015-10-08 10:19:29 +11:00
parent 37712ad9ad
commit 6d8e6e3031
4 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Bug 1165538 - Minimum font size on ruby text</title>
</head>
<body style="font-size: 16px">
<ruby>
<rb>超電磁砲</rb>
<rt>レールガン</rt>
</ruby>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>Bug 1165538 - Minimum font size on ruby text</title>
</head>
<body style="font-size: 1px">
<ruby>
<rb>超電磁砲</rb>
<rt>レールガン</rt>
</ruby>
</body>
</html>

View File

@ -38,6 +38,7 @@ fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu),3,2) == line-break-suppressi
== line-height-2.html line-height-2-ref.html
== line-height-3.html line-height-3-ref.html
== line-height-4.html line-height-4-ref.html
test-pref(font.minimum-size.ja,16) == min-font-size-1.html min-font-size-1-ref.html
load nested-ruby-1.html
== no-transform.html no-transform-ref.html
== relative-positioning-1.html relative-positioning-1-ref.html

View File

@ -810,6 +810,7 @@ marquee[direction="up"], marquee[direction="down"] {
rtc, rt {
white-space: nowrap;
font-size: 50%;
-moz-min-font-size-ratio: 50%;
line-height: 1;
%ifndef XP_WIN
/* The widely-used Windows font Meiryo doesn't work fine with this
@ -828,6 +829,7 @@ marquee[direction="up"], marquee[direction="down"] {
}
rtc:lang(zh-TW), rt:lang(zh-TW) {
font-size: 30%; /* bopomofo */
-moz-min-font-size-ratio: 30%;
}
rtc > rt {
font-size: inherit;