aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-07-09 20:34:50 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-08-26 21:24:46 +0100
commita29ab0e47cd0c4ce71a3b6f61f441c42e5b4f8be (patch)
treed3ef76418dcf0edf28d9ba789bb42e94d7a5f8d8 /src
parent2e6b34f59895af11e62c9d14b577ffd8a7ef4684 (diff)
downloadservo-a29ab0e47cd0c4ce71a3b6f61f441c42e5b4f8be.tar.gz
servo-a29ab0e47cd0c4ce71a3b6f61f441c42e5b4f8be.zip
Add a reftest for basic block layout in a vertical writing mode.
Diffstat (limited to 'src')
-rw-r--r--src/test/ref/basic.list1
-rw-r--r--src/test/ref/vertical-lr-blocks.html18
-rw-r--r--src/test/ref/vertical-lr-blocks_ref.html18
3 files changed, 37 insertions, 0 deletions
diff --git a/src/test/ref/basic.list b/src/test/ref/basic.list
index 13835bf64ee..9884fe140b4 100644
--- a/src/test/ref/basic.list
+++ b/src/test/ref/basic.list
@@ -86,6 +86,7 @@ flaky_cpu == linebreak_simple_a.html linebreak_simple_b.html
== position_fixed_overflow_a.html position_fixed_overflow_b.html
== noscript.html noscript_ref.html
== pseudo_inherit.html pseudo_inherit_ref.html
+experimental == vertical-lr-blocks.html vertical-lr-blocks_ref.html
== float_intrinsic_height.html float_intrinsic_height_ref.html
== table_auto_width.html table_auto_width_ref.html
== inline_whitespace_b.html inline_whitespace_ref.html
diff --git a/src/test/ref/vertical-lr-blocks.html b/src/test/ref/vertical-lr-blocks.html
new file mode 100644
index 00000000000..c68fee90788
--- /dev/null
+++ b/src/test/ref/vertical-lr-blocks.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html>
+<head>
+<style>
+html { writing-mode: vertical-rl }
+body { margin: 10px }
+div { border: blue solid 5px; line-height: 30px; height: 500px }
+p { background: green; margin: 40px 20px }
+p + p { margin-top: 60px }
+</style>
+</head>
+<body>
+<div>
+<p>&nbsp;</p>
+<p>&nbsp;</p>
+</div>
+</body>
+</html>
diff --git a/src/test/ref/vertical-lr-blocks_ref.html b/src/test/ref/vertical-lr-blocks_ref.html
new file mode 100644
index 00000000000..8581695c49f
--- /dev/null
+++ b/src/test/ref/vertical-lr-blocks_ref.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<html>
+<head>
+<style>
+div { border: blue solid 5px; position: absolute;
+ top: 10px; right: 10px; bottom: 10px; width: 120px; height: 500px }
+p { background: green; margin: 0; position: absolute;
+ top: 40px; right: 20px; bottom: 40px; width: 30px }
+p + p { right: 70px; top: 60px }
+</style>
+</head>
+<body>
+<div>
+<p>&nbsp;</p>
+<p>&nbsp;</p>
+</div>
+</body>
+</html>