Bug 1089431 part 4 - Add reftest for line-breaking between ruby bases. r=jfkthame
authorXidorn Quan <quanxunzhen@gmail.com>
Wed, 11 Feb 2015 10:26:56 +1100
changeset 242224 07e692be90a50c0f89dcf6f31bc1b8193986ac18
parent 242223 e72b4bc2eddb4cd46024590d4f604e59a3f57334
child 242225 6049b08ce1d20b53a2182d6f0b197bd31bdc2eb5
push id649
push userwcosta@mozilla.com
push dateWed, 11 Feb 2015 16:57:44 +0000
reviewersjfkthame
bugs1089431
milestone38.0a1
Bug 1089431 part 4 - Add reftest for line-breaking between ruby bases. r=jfkthame
layout/reftests/css-ruby/line-breaking-1-ref.html
layout/reftests/css-ruby/line-breaking-1.html
layout/reftests/css-ruby/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-ruby/line-breaking-1-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="ja">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 1089431 - Meet the specification for line breaking between ruby bases</title>
+  <link rel="stylesheet" href="common.css">
+  <style>
+    body { line-height: 3; }
+    span { white-space: nowrap; }
+  </style>
+</head>
+<body>
+  <div style="width: .5em; border: 1px solid silver;">
+    <span>「</span><span>な</span><span>に</span><span>、</span><span>誰</span><span>?</span><span>」</span><span>「</span><span>私</span><span>です</span><span>」</span>
+  </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-ruby/line-breaking-1.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="ja">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 1089431 - Meet the specification for line breaking between ruby bases</title>
+  <link rel="stylesheet" href="common.css">
+  <style>
+    body { line-height: 3; }
+  </style>
+</head>
+<body>
+  <div style="width: .5em; border: 1px solid silver;">
+    <ruby>
+      <rb>「<rb>な<rb>に<rb>、<rb>誰<rb>?<rb>」<rb>「<rb>私<rb>です<rb>」</rb>
+      <!-- Check if ruby text containers are skipped from the text run -->
+      <rtc><rt>
+    </ruby>
+  </div>
+</body>
+</html>
--- a/layout/reftests/css-ruby/reftest.list
+++ b/layout/reftests/css-ruby/reftest.list
@@ -24,16 +24,17 @@ fails == autohiding-3.html autohiding-3-
 == inlinize-blocks-3.html inlinize-blocks-3-ref.html
 == inlinize-blocks-4.html inlinize-blocks-4-ref.html
 == inlinize-blocks-5.html inlinize-blocks-5-ref.html
 == intra-level-whitespace-1.html intra-level-whitespace-1-ref.html
 == intra-level-whitespace-2.html intra-level-whitespace-2-ref.html
 == intra-level-whitespace-3.html intra-level-whitespace-3-ref.html
 == justification-1.html justification-1-ref.html
 == justification-2.html justification-2-ref.html
+== 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
 == line-height-3.html line-height-3-ref.html
 load nested-ruby-1.html
 == no-transform.html no-transform-ref.html
 fails-if(cocoaWidget) == relative-positioning-1.html relative-positioning-1-ref.html # bug 1120280
 == relative-positioning-2.html relative-positioning-2-ref.html
 == ruby-position-horizontal.html ruby-position-horizontal-ref.html