Bug 1302734 - Add reftests for unicode-bidi:plaintext in vertical writing mode. r=dholbert
authorJonathan Kew <jkew@mozilla.com>
Thu, 15 Sep 2016 10:36:26 +0100
changeset 314043 1aff840555e1a2a05accb90eee2739a75fb7b9b0
parent 314042 fea76c9b016b3175f93aacd68e4f095906bb9c7c
child 314044 726bf8b82211f088f64a750edf7cfc4a7199f162
push id30705
push userkwierso@gmail.com
push dateThu, 15 Sep 2016 23:29:32 +0000
treeherdermozilla-central@7ad3c6ebc11a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1302734
milestone51.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 1302734 - Add reftests for unicode-bidi:plaintext in vertical writing mode. r=dholbert
layout/reftests/writing-mode/1302734-bidi-plaintext-1-ref.html
layout/reftests/writing-mode/1302734-bidi-plaintext-1a.html
layout/reftests/writing-mode/1302734-bidi-plaintext-1b.html
layout/reftests/writing-mode/1302734-bidi-plaintext-2-ref.html
layout/reftests/writing-mode/1302734-bidi-plaintext-2a.html
layout/reftests/writing-mode/1302734-bidi-plaintext-2b.html
layout/reftests/writing-mode/1302734-bidi-plaintext-2c.html
layout/reftests/writing-mode/1302734-bidi-plaintext-2d.html
layout/reftests/writing-mode/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1302734-bidi-plaintext-1-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<style>
+div {
+  width: 50px;
+  height: 100px;
+  border: 1px solid gray;
+  display: inline-block;
+  writing-mode: vertical-rl;
+}
+</style>
+<div>x</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1302734-bidi-plaintext-1a.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+div {
+  width: 50px;
+  height: 100px;
+  border: 1px solid gray;
+  display: inline-block;
+  writing-mode: vertical-rl;
+}
+</style>
+<!-- unicode-bidi:plaintext should resolve to LTR, ignoring the dir attribute -->
+<div dir="rtl" style="unicode-bidi:plaintext;">x</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1302734-bidi-plaintext-1b.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+div {
+  width: 50px;
+  height: 100px;
+  border: 1px solid gray;
+  display: inline-block;
+  writing-mode: vertical-rl;
+}
+</style>
+<!-- unicode-bidi:plaintext should resolve to LTR, ignoring the direction property -->
+<div style="direction:rtl; unicode-bidi:plaintext;">x</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1302734-bidi-plaintext-2-ref.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<style>
+div {
+  width: 50px;
+  height: 100px;
+  border: 1px solid gray;
+  display: inline-block;
+  writing-mode: vertical-rl;
+}
+</style>
+<div style="text-align:end">x</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1302734-bidi-plaintext-2a.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+div {
+  width: 50px;
+  height: 100px;
+  border: 1px solid gray;
+  display: inline-block;
+  writing-mode: vertical-rl;
+}
+</style>
+<!-- dir="rtl" should make the text bottom-aligned (i.e. line-right) -->
+<div dir="rtl">x</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1302734-bidi-plaintext-2b.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+div {
+  width: 50px;
+  height: 100px;
+  border: 1px solid gray;
+  display: inline-block;
+  writing-mode: vertical-rl;
+}
+</style>
+<!-- direction:rtl should make the text bottom-aligned (i.e. line-right) -->
+<div style="direction:rtl;">x</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1302734-bidi-plaintext-2c.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+div {
+  width: 50px;
+  height: 100px;
+  border: 1px solid gray;
+  display: inline-block;
+  writing-mode: vertical-rl;
+}
+</style>
+<!-- unicode-bidi:plaintext should resolve to RTL, ignoring the dir attribute -->
+<div dir="ltr" style="unicode-bidi:plaintext;">&rlm;x</div>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/writing-mode/1302734-bidi-plaintext-2d.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<style>
+div {
+  width: 50px;
+  height: 100px;
+  border: 1px solid gray;
+  display: inline-block;
+  writing-mode: vertical-rl;
+}
+</style>
+<!-- unicode-bidi:plaintext should resolve to RTL, ignoring the direction property -->
+<div style="direction:ltr; unicode-bidi:plaintext;">&rlm;x</div>
--- a/layout/reftests/writing-mode/reftest.list
+++ b/layout/reftests/writing-mode/reftest.list
@@ -164,16 +164,23 @@ fuzzy-if(gtkWidget||B2G,255,6) fuzzy-if(
 == 1196887-1-computed-display-inline-block.html 1196887-1-computed-display-inline-block-ref.html
 == 1205787-legacy-svg-values-1.html 1205787-legacy-svg-values-1-ref.html
 
 == 1216747-1.html 1216747-1-ref.html
 != 1216747-1.html 1216747-1-notref.html
 
 == 1243125-1-floats-overflowing.html 1243125-1-floats-overflowing-ref.html
 
+fails == 1302734-bidi-plaintext-1a.html 1302734-bidi-plaintext-1-ref.html
+fails == 1302734-bidi-plaintext-1b.html 1302734-bidi-plaintext-1-ref.html
+== 1302734-bidi-plaintext-2a.html 1302734-bidi-plaintext-2-ref.html
+== 1302734-bidi-plaintext-2b.html 1302734-bidi-plaintext-2-ref.html
+fails == 1302734-bidi-plaintext-2c.html 1302734-bidi-plaintext-2-ref.html
+fails == 1302734-bidi-plaintext-2d.html 1302734-bidi-plaintext-2-ref.html
+
 skip-if(Android) HTTP(..) == 1248248-1-orientation-break-glyphrun.html 1248248-1-orientation-break-glyphrun-ref.html # Android bug 1250229
 
 # Suite of tests from Gérard Talbot in bug 1079151
 # Frequent Windows 7 load failed: timed out waiting for test to complete (waiting for onload scripts to complete), bug 1167155 and friends
 skip-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) include abspos/reftest.list
 
 # Tests for tables with vertical writing modes
 include tables/reftest.list