Skip to content

Commit fda9fa3

Browse files
upsupermoz-wptsync-bot
authored andcommitted
part 3 - Move most appropriate tests into wpt.
Differential Revision: https://phabricator.services.mozilla.com/D58234 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1134069 gecko-commit: 5102c533bc768eacf74976379687bd7e52fed976 gecko-integration-branch: autoland gecko-reviewers: dbaron
1 parent 878422d commit fda9fa3

86 files changed

Lines changed: 2025 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>Tests for ruby-align</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<link rel="stylesheet" href="/fonts/ahem.css">
7+
<link rel="stylesheet" href="support/ruby-common.css">
8+
<style>
9+
div { width: 160px; box-sizing: border-box; }
10+
</style>
11+
<body style="font: 16px/3 Ahem">
12+
<div>X X X</div>
13+
<div style="text-align: center">X X X</div>
14+
<div style="text-align-last: justify">X X X</div>
15+
<!-- 8px = (width: 160px - 5 * font-size: 16px) /
16+
(1 + justification opportunities: 4) / 2 -->
17+
<div style="text-align-last: justify; padding: 0 8px">X X X</div>

css/css-ruby/ruby-align-001.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>Tests for ruby-align</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
7+
<link rel="match" href="ruby-align-001-ref.html">
8+
<link rel="stylesheet" href="/fonts/ahem.css">
9+
<link rel="stylesheet" href="support/ruby-common.css">
10+
<style>
11+
ruby { line-height: 0; }
12+
rt > div { width: 160px; }
13+
</style>
14+
<body style="font: 16px/3 Ahem">
15+
<ruby style="ruby-align: start">
16+
<rb>X X X<rt><div></div></rt>
17+
</ruby><br>
18+
<ruby style="ruby-align: center">
19+
<rb>X X X<rt><div></div></rt>
20+
</ruby><br>
21+
<ruby style="ruby-align: space-between">
22+
<rb>X X X<rt><div></div></rt>
23+
</ruby><br>
24+
<ruby style="ruby-align: space-around">
25+
<rb>X X X<rt><div></div></rt>
26+
</ruby>

css/css-ruby/ruby-align-001a.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>Tests for ruby-align</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
7+
<link rel="match" href="ruby-align-001-ref.html">
8+
<link rel="stylesheet" href="/fonts/ahem.css">
9+
<link rel="stylesheet" href="support/ruby-common.css">
10+
<style>
11+
ruby { line-height: 0; }
12+
rt > div { width: 160px; }
13+
</style>
14+
<body style="font: 16px/3 Ahem">
15+
<ruby>
16+
<rb style="ruby-align: start">X X X<rt><div></div></rt>
17+
</ruby><br>
18+
<ruby>
19+
<rb style="ruby-align: center">X X X<rt><div></div></rt>
20+
</ruby><br>
21+
<ruby>
22+
<rb style="ruby-align: space-between">X X X<rt><div></div></rt>
23+
</ruby><br>
24+
<ruby>
25+
<rb style="ruby-align: space-around">X X X<rt><div></div></rt>
26+
</ruby>
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>Tests for ruby-align</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<link rel="stylesheet" href="/fonts/ahem.css">
7+
<link rel="stylesheet" href="support/ruby-common.css">
8+
<style>
9+
ruby { line-height: 0; }
10+
rt { font-size: 100%; }
11+
rt > div { width: 160px; box-sizing: border-box; }
12+
</style>
13+
<body style="font: 16px/3 Ahem">
14+
<ruby>
15+
<rt><div>X X X</div></rt>
16+
</ruby><br>
17+
<ruby>
18+
<rt><div style="text-align: center">X X X</div></rt>
19+
</ruby><br>
20+
<ruby>
21+
<rt><div style="text-align-last: justify">X X X</div></rt>
22+
</ruby><br>
23+
<!-- 8px = (width: 160px - 5 * font-size: 16px) /
24+
(1 + justification opportunities: 4) / 2 -->
25+
<ruby>
26+
<rt><div style="text-align-last: justify; padding: 0 8px">X X X</div></rt>
27+
</ruby>

css/css-ruby/ruby-align-002.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>Tests for ruby-align</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
7+
<link rel="match" href="ruby-align-002-ref.html">
8+
<link rel="stylesheet" href="/fonts/ahem.css">
9+
<link rel="stylesheet" href="support/ruby-common.css">
10+
<style>
11+
ruby { line-height: 0; }
12+
rt { font-size: 100%; }
13+
rb { font-size: 0; }
14+
rb > div { width: 160px; }
15+
</style>
16+
<body style="font: 16px/3 Ahem">
17+
<ruby style="ruby-align: start">
18+
<rb><div></div><rt>X X X</rt>
19+
</ruby><br>
20+
<ruby style="ruby-align: center">
21+
<rb><div></div><rt>X X X</rt>
22+
</ruby><br>
23+
<ruby style="ruby-align: space-between">
24+
<rb><div></div><rt>X X X</rt>
25+
</ruby><br>
26+
<ruby style="ruby-align: space-around">
27+
<rb><div></div><rt>X X X</rt>
28+
</ruby>

css/css-ruby/ruby-align-002a.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>Tests for ruby-align</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
7+
<link rel="match" href="ruby-align-002-ref.html">
8+
<link rel="stylesheet" href="/fonts/ahem.css">
9+
<link rel="stylesheet" href="support/ruby-common.css">
10+
<style>
11+
ruby { line-height: 0; }
12+
rt { font-size: 100%; }
13+
rb { font-size: 0; }
14+
rb > div { width: 160px; }
15+
</style>
16+
<body style="font: 16px/3 Ahem">
17+
<ruby>
18+
<rb><div></div><rt style="ruby-align: start">X X X</rt>
19+
</ruby><br>
20+
<ruby>
21+
<rb><div></div><rt style="ruby-align: center">X X X</rt>
22+
</ruby><br>
23+
<ruby>
24+
<rb><div></div><rt style="ruby-align: space-between">X X X</rt>
25+
</ruby><br>
26+
<ruby>
27+
<rb><div></div><rt style="ruby-align: space-around">X X X</rt>
28+
</ruby>

css/css-ruby/ruby-base-different-size-ref.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<meta charset="UTF-8">
44
<title>CSS Ruby Reference</title>
55
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
6+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
67
<link rel="stylesheet" href="/fonts/ahem.css">
78
<style>
89
body {

css/css-ruby/ruby-base-different-size.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<meta charset="UTF-8">
44
<title>CSS Ruby Test: sizing and positioning of ruby containers when size of ruby bases and the base container differ</title>
55
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
6+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
67
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-layout">
78
<link rel="match" href="ruby-base-different-size-ref.html">
89
<link rel="stylesheet" href="/fonts/ahem.css">
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>Position of ruby annotation in RTL text</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<style>
7+
body { color: transparent; }
8+
rb { background: green; }
9+
rtc { background: red; }
10+
rt { background: cyan; }
11+
</style>
12+
<body style="text-align: right">
13+
<ruby><rb>base<rtc><rt>text</ruby>
14+
</body>

css/css-ruby/ruby-bidi-001.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<meta charset="UTF-8">
3+
<title>Position of ruby annotation in RTL text</title>
4+
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org">
5+
<link rel="author" title="Mozilla" href="https://www.mozilla.org">
6+
<link rel="help" href="https://drafts.csswg.org/css-ruby-1/#bidi">
7+
<link rel="match" href="ruby-bidi-001-ref.html">
8+
<style>
9+
body { color: transparent; }
10+
rb { background: green; }
11+
rtc { background: red; }
12+
rt { background: cyan; }
13+
</style>
14+
<body dir="rtl">
15+
<ruby><rb>base<rtc><rt>text</ruby>
16+
</body>

0 commit comments

Comments
 (0)