Bug 1133624 - Add lang-specific ruby rules to ua.css. r=dbaron

This commit is contained in:
Xidorn Quan 2015-03-04 13:00:53 +11:00
parent ebdaffdf6e
commit a740a953a5
4 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 1133624 - Test for lang-specific default stylesheet for ruby</title>
<link rel="stylesheet" href="common.css">
</head>
<body style="font: 200%/normal Ahem !important">
<p><ruby><rb>base x x<rt style="ruby-align: space-around; font-size: 50%">text x x</ruby></p>
<p><ruby><rb>base x x<rt style="ruby-align: space-around; font-size: 50%">text x x</ruby></p>
<p><ruby><rb>base x x<rt style="ruby-align: center; font-size: 50%">text x x</ruby></p>
<p><ruby><rb>base x x<rt style="ruby-align: center; font-size: 30%">text x x</ruby></p>
</body>
</html>

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Bug 1133624 - Test for lang-specific default stylesheet for ruby</title>
<link rel="stylesheet" href="common.css">
</head>
<body style="font: 200%/normal Ahem !important">
<p lang="en"><ruby><rb>base x x<rt>text x x</ruby></p>
<p lang="ja"><ruby><rb>base x x<rt>text x x</ruby></p>
<p lang="zh-CN"><ruby><rb>base x x<rt>text x x</ruby></p>
<p lang="zh-TW"><ruby><rb>base x x<rt>text x x</ruby></p>
</body>
</html>

View File

@ -23,6 +23,7 @@ test-pref(dom.meta-viewport.enabled,true) test-pref(font.size.inflation.emPerLin
== intrinsic-isize-1.html intrinsic-isize-1-ref.html
== justification-1.html justification-1-ref.html
== justification-2.html justification-2-ref.html
fuzzy-if(winWidget,171,792) == lang-specific-style-1.html lang-specific-style-1-ref.html # bug 1134947
== line-breaking-1.html line-breaking-1-ref.html
== line-height-1.html line-height-1-ref.html
== line-height-2.html line-height-2-ref.html

View File

@ -813,6 +813,12 @@ marquee[direction="up"], marquee[direction="down"] {
font-size: 50%;
line-height: 1;
}
rtc:lang(zh), rt:lang(zh) {
ruby-align: center;
}
rtc:lang(zh-TW), rt:lang(zh-TW) {
font-size: 30%; /* bopomofo */
}
rtc > rt {
font-size: inherit;
}