Bug 1268342 part 4 - Add reftest for ruby with text-combine-upright. r?jfkthame
MozReview-Commit-ID: 85TxCXMv1X
--- a/layout/reftests/w3c-css/submitted/ruby/reftest.list
+++ b/layout/reftests/w3c-css/submitted/ruby/reftest.list
@@ -6,8 +6,13 @@
== ruby-inlinize-blocks-005.html ruby-inlinize-blocks-005-ref.html
# Tests for autohiding base-identical annotations
== ruby-autohide-001.html ruby-autohide-001-ref.html
== ruby-autohide-002.html ruby-autohide-002-ref.html
== ruby-autohide-003.html ruby-autohide-003-ref.html
== ruby-autohide-004.html ruby-autohide-001-ref.html
+# Tests for ruby with text-combine-upright
+== ruby-text-combine-upright-001a.html ruby-text-combine-upright-001-ref.html
+== ruby-text-combine-upright-001b.html ruby-text-combine-upright-001-ref.html
+== ruby-text-combine-upright-002a.html ruby-text-combine-upright-002-ref.html
+== ruby-text-combine-upright-002b.html ruby-text-combine-upright-002-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-001-ref.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>CSS Reference: Ruby with text-combine-upright in base</title>
+ <link rel="author" title="Xidorn Quan" href="mailto:csswg@upsuper.org">
+ <link rel="stylesheet" href="support/ahem.css">
+ <style>
+ .test {
+ font: 52px Ahem;
+ writing-mode: vertical-rl;
+ }
+ </style>
+</head>
+<body>
+ <p>Test passes if the two rectangles are vertically middle aligned.</p>
+ <div class="test">
+ <ruby><rb><span style="writing-mode: horizontal-tb">X</span></rb><rt>XXXXXXXX</rt></ruby>
+ </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-001a.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>CSS Test: Ruby with text-combine-upright base</title>
+ <link rel="author" title="Xidorn Quan" href="mailto:csswg@upsuper.org">
+ <link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
+ <link rel="match" href="ruby-text-combine-upright-001-ref.html">
+ <link rel="stylesheet" href="support/ahem.css">
+ <style>
+ .test {
+ font: 52px Ahem;
+ writing-mode: vertical-rl;
+ }
+ </style>
+</head>
+<body>
+ <p>Test passes if the two rectangles are vertically middle aligned.</p>
+ <div class="test">
+ <ruby><rb style="text-combine-upright: all">X</rb><rt>XXXXXXXX</rt></ruby>
+ </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-001b.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>CSS Test: Ruby with text-combine-upright child in base</title>
+ <link rel="author" title="Xidorn Quan" href="mailto:csswg@upsuper.org">
+ <link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
+ <link rel="match" href="ruby-text-combine-upright-001-ref.html">
+ <link rel="stylesheet" href="support/ahem.css">
+ <style>
+ .test {
+ font: 52px Ahem;
+ writing-mode: vertical-rl;
+ }
+ </style>
+</head>
+<body>
+ <p>Test passes if the two rectangles are vertically middle aligned.</p>
+ <div class="test">
+ <ruby><rb><span style="text-combine-upright: all">X</span></rb><rt>XXXXXXXX</rt></ruby>
+ </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-002-ref.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>CSS Reference: Ruby with text-combine-upright annotation</title>
+ <link rel="author" title="Xidorn Quan" href="mailto:csswg@upsuper.org">
+ <link rel="stylesheet" href="support/ahem.css">
+ <style>
+ .test {
+ font: 52px Ahem;
+ writing-mode: vertical-rl;
+ }
+ </style>
+</head>
+<body>
+ <p>Test passes if the two rectangles are vertically middle aligned.</p>
+ <div class="test">
+ <ruby><rb>XXXX</rb><rt><span style="writing-mode: horizontal-tb">X</span></rt></ruby>
+ </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-002a.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>CSS Test: Ruby with text-combine-upright in annotation</title>
+ <link rel="author" title="Xidorn Quan" href="mailto:csswg@upsuper.org">
+ <link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
+ <link rel="match" href="ruby-text-combine-upright-002-ref.html">
+ <link rel="stylesheet" href="support/ahem.css">
+ <style>
+ .test {
+ font: 52px Ahem;
+ writing-mode: vertical-rl;
+ }
+ </style>
+</head>
+<body>
+ <p>Test passes if the two rectangles are vertically middle aligned.</p>
+ <div class="test">
+ <ruby><rb>XXXX</rb><rt style="text-combine-upright: all">X</rt></ruby>
+ </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-002b.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>CSS Test: Ruby with text-combine-upright child in annotation</title>
+ <link rel="author" title="Xidorn Quan" href="mailto:csswg@upsuper.org">
+ <link rel="help" href="https://drafts.csswg.org/css-ruby-1/#ruby-align-property">
+ <link rel="match" href="ruby-text-combine-upright-002-ref.html">
+ <link rel="stylesheet" href="support/ahem.css">
+ <style>
+ .test {
+ font: 52px Ahem;
+ writing-mode: vertical-rl;
+ }
+ </style>
+</head>
+<body>
+ <p>Test passes if the two rectangles are vertically middle aligned.</p>
+ <div class="test">
+ <ruby><rb>XXXX</rb><rt><span style="text-combine-upright: all">X</span></rt></ruby>
+ </div>
+</body>
+</html>
copy from layout/reftests/fonts/Ahem.ttf
copy to layout/reftests/w3c-css/submitted/ruby/support/Ahem.ttf
copy from layout/reftests/w3c-css/submitted/flexbox/support/ahem.css
copy to layout/reftests/w3c-css/submitted/ruby/support/ahem.css