Bug 1055665 part 5 - Tests for ruby-position. r=dholbert
authorXidorn Quan <quanxunzhen@gmail.com>
Tue, 09 Dec 2014 17:47:26 +1100
changeset 221278 4e097ce354d57a59b68395191415510c03034dd2
parent 221277 d82e1fe5cfd19910416a4237fdcda7020fe4327e
child 221279 834d27e2c0256a4a84aff95ff14853562f59b742
push id28015
push userphilringnalda@gmail.com
push dateWed, 24 Dec 2014 23:38:54 +0000
treeherdermozilla-central@2acb12da9813 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1055665
milestone37.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 1055665 part 5 - Tests for ruby-position. r=dholbert
layout/reftests/css-ruby/reftest.list
layout/reftests/css-ruby/ruby-position-horizontal-ref.html
layout/reftests/css-ruby/ruby-position-horizontal.html
layout/reftests/css-ruby/ruby-position-vertical-lr-ref.html
layout/reftests/css-ruby/ruby-position-vertical-lr.html
layout/reftests/css-ruby/ruby-position-vertical-rl-ref.html
layout/reftests/css-ruby/ruby-position-vertical-rl.html
--- a/layout/reftests/css-ruby/reftest.list
+++ b/layout/reftests/css-ruby/reftest.list
@@ -17,10 +17,13 @@ fuzzy-if(winWidget,28,1) == dynamic-remo
 == float-handling.html float-handling-ref.html
 == inlinize-blocks-1.html inlinize-blocks-1-ref.html
 == inlinize-blocks-2.html inlinize-blocks-2-ref.html
 == 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
 == ruby-whitespace-1.html ruby-whitespace-1-ref.html
 == ruby-whitespace-2.html ruby-whitespace-2-ref.html
+== ruby-position-horizontal.html ruby-position-horizontal-ref.html
+pref(layout.css.vertical-text.enabled,true) fails == ruby-position-vertical-lr.html ruby-position-vertical-lr-ref.html # bug 1112474
+pref(layout.css.vertical-text.enabled,true) fails == ruby-position-vertical-rl.html ruby-position-vertical-rl-ref.html # bug 1112474
 != ruby-reflow-1-opaqueruby.html ruby-reflow-1-noruby.html
 == ruby-reflow-1-transparentruby.html ruby-reflow-1-noruby.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-ruby/ruby-position-horizontal-ref.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 1055665 - Test for ruby-position</title>
+  <link rel="stylesheet" href="common.css">
+  <style>
+    body {
+      font-family: monospace;
+      line-height: normal;
+    }
+    .annotation, .annotation > div {
+      position: absolute;
+    }
+  </style>
+</head>
+<body>
+  <div style="height: 8em; line-height: 8em;">
+    <div style="display: inline-block; line-height: normal;">
+      <div class="annotation">
+        <div style="top: -100%;">over##</div>
+        <div style="top: 100%;">under#</div>
+        <div style="top: -200%;">over2#</div>
+        <div style="top: 200%;">under2</div>
+        &nbsp; <!-- to give container a nonzero size for
+                    percent values to resolve against -->
+      </div>
+      base##
+    </div>
+  </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-ruby/ruby-position-horizontal.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 1055665 - Test for ruby-position</title>
+  <link rel="stylesheet" href="common.css">
+  <style>
+    body {
+      font-family: monospace;
+      /* use a large line-height here to avoid additional leadings */
+      line-height: 8em;
+    }
+    rtc, rt {
+      font-size: 100% !important;
+      line-height: normal !important;
+    }
+  </style>
+</head>
+<body>
+  <ruby>
+    <rb>base##</rb>
+    <rtc style="ruby-position: over left"><rt>over##</rt></rtc>
+    <rtc style="ruby-position: under left"><rt>under#</rt></rtc>
+    <rtc style="ruby-position: over left"><rt>over2#</rt></rtc>
+    <rtc style="ruby-position: under left"><rt>under2</rt></rtc>
+  </ruby>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-ruby/ruby-position-vertical-lr-ref.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 1055665 - Test for ruby-position</title>
+  <link rel="stylesheet" href="common.css">
+  <style>
+    body {
+      font-family: monospace;
+      line-height: normal;
+      writing-mode: vertical-lr;
+    }
+    .annotation, .annotation > div {
+      position: absolute;
+    }
+  </style>
+</head>
+<body>
+  <div style="width: 8em; line-height: 8em;">
+    <div style="display: inline-block; line-height: normal;">
+      <div class="annotation">
+        <div style="right: 100%;">left##</div>
+        <div style="right: -100%;">right#</div>
+        <div style="right: 200%;">left2#</div>
+        <div style="right: -200%;">right2</div>
+        &nbsp; <!-- to give container a nonzero size for
+                    percent values to resolve against -->
+      </div>
+      base##
+    </div>
+  </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-ruby/ruby-position-vertical-lr.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 1055665 - Test for ruby-position</title>
+  <link rel="stylesheet" href="common.css">
+  <style>
+    body {
+      font-family: monospace;
+      /* use a large line-height here to avoid additional leadings */
+      line-height: 8em;
+      writing-mode: vertical-lr;
+    }
+    rtc, rt {
+      font-size: 100% !important;
+      line-height: normal !important;
+    }
+  </style>
+</head>
+<body>
+  <ruby>
+    <rb>base##</rb>
+    <rtc style="ruby-position: over left"><rt>left##</rt></rtc>
+    <rtc style="ruby-position: over right"><rt>right#</rt></rtc>
+    <rtc style="ruby-position: over left"><rt>left2#</rt></rtc>
+    <rtc style="ruby-position: over right"><rt>right2</rt></rtc>
+  </ruby>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-ruby/ruby-position-vertical-rl-ref.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 1055665 - Test for ruby-position</title>
+  <link rel="stylesheet" href="common.css">
+  <style>
+    body {
+      font-family: monospace;
+      line-height: normal;
+      writing-mode: vertical-rl;
+    }
+    .annotation, .annotation > div {
+      position: absolute;
+    }
+  </style>
+</head>
+<body>
+  <div style="width: 8em; line-height: 8em;">
+    <div style="display: inline-block; line-height: normal;">
+      <div class="annotation">
+        <div style="right: 100%;">left##</div>
+        <div style="right: -100%;">right#</div>
+        <div style="right: 200%;">left2#</div>
+        <div style="right: -200%;">right2</div>
+        &nbsp; <!-- to give container a nonzero size for
+                    percent values to resolve against -->
+      </div>
+      base##
+    </div>
+  </div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/css-ruby/ruby-position-vertical-rl.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 1055665 - Test for ruby-position</title>
+  <link rel="stylesheet" href="common.css">
+  <style>
+    body {
+      font-family: monospace;
+      /* use a large line-height here to avoid additional leadings */
+      line-height: 8em;
+      writing-mode: vertical-rl;
+    }
+    rtc, rt {
+      font-size: 100% !important;
+      line-height: normal !important;
+    }
+  </style>
+</head>
+<body>
+  <ruby>
+    <rb>base##</rb>
+    <rtc style="ruby-position: over left"><rt>left##</rt></rtc>
+    <rtc style="ruby-position: over right"><rt>right#</rt></rtc>
+    <rtc style="ruby-position: over left"><rt>left2#</rt></rtc>
+    <rtc style="ruby-position: over right"><rt>right2</rt></rtc>
+  </ruby>
+</body>
+</html>