Bug 1268342 part 4 - Add reftest for ruby with text-combine-upright. r=jfkthame
authorXidorn Quan <me@upsuper.org>
Mon, 30 May 2016 09:24:18 +1000
changeset 340479 0d7674be600defa53a0721874b75731d56c09fc7
parent 340478 7beb1565767200b49de2450912af5624ab7f4725
child 340480 8d6528df69a06d28adc9526e11108cbe4f35ac52
push id1183
push userraliiev@mozilla.com
push dateMon, 05 Sep 2016 20:01:49 +0000
treeherdermozilla-release@3148731bed45 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs1268342
milestone49.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1268342 part 4 - Add reftest for ruby with text-combine-upright. r=jfkthame MozReview-Commit-ID: 85TxCXMv1X
layout/reftests/w3c-css/submitted/ruby/reftest.list
layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-001-ref.html
layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-001a.html
layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-001b.html
layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-002-ref.html
layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-002a.html
layout/reftests/w3c-css/submitted/ruby/ruby-text-combine-upright-002b.html
layout/reftests/w3c-css/submitted/ruby/support/Ahem.ttf
layout/reftests/w3c-css/submitted/ruby/support/ahem.css
--- 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