aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css21_dev/xhtml1/reference
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2015-07-27 17:47:31 +0100
committerJames Graham <james@hoppipolla.co.uk>2015-07-27 17:47:31 +0100
commitdf03062d626f485dd896ce9c4374dfce447dc657 (patch)
treea96bdde06c6cd88dd68bc5ef4de8277fc6250a60 /tests/wpt/css-tests/css21_dev/xhtml1/reference
parent662c00a8109c49d4c57343156b774441f4f48640 (diff)
downloadservo-df03062d626f485dd896ce9c4374dfce447dc657.tar.gz
servo-df03062d626f485dd896ce9c4374dfce447dc657.zip
Update CSS tests to revision 2baa72daab8bf37e3e910a9fd311a1eaa5b0f4a8
Diffstat (limited to 'tests/wpt/css-tests/css21_dev/xhtml1/reference')
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-003-ref.xht29
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-007-ref.xht37
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-009-ref.xht29
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-013-ref.xht37
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-155-ref.xht37
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-163-ref.xht37
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-002-ref.xht29
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-004-ref.xht29
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-006-ref.xht42
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-012-ref.xht42
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-122-ref.xht42
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-130-ref.xht42
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/bidi-004-ref.xht44
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/bidi-004a-ref.xht52
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/border-collapse-005-ref.xht35
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-001-ref.xht26
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-007-ref.xht41
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-008-ref.xht27
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-009-ref.xht26
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-010-ref.xht19
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-012-ref.xht19
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-013-ref.xht19
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-020-ref.xht19
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-022-ref.xht19
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-023-ref.xht19
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-1-notref.xht14
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-1-ref.xht17
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-2-ref.xht14
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-001-ref.xht55
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-002-ref.xht48
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-003-ref.xht48
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-004-ref.xht85
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-006-ref.xht29
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-007-ref.xht42
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-009-ref.xht42
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-010-ref.xht42
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/painting-order-underline-001-ref.xht30
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/CSSHWOrientationTest.otfbin0 -> 46940 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/LICENSE31
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/README.md36
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-1col-2row-320x320.pngbin0 -> 1735 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-1col-3row-320x320.pngbin0 -> 1735 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-4col-2row-320x320.pngbin0 -> 1708 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-4col-3row-320x320.pngbin0 -> 1707 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html93
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html93
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html93
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html93
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html96
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html96
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html93
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html93
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html93
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html93
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html94
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html96
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html96
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-002.html25
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-004.html26
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-006.html27
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-008.html28
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/green.icobin0 -> 894 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/h100.svg2
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/h100_r1-1.svg2
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/left-bottom-green-200x300.pngbin0 -> 702 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/left-center-green-200x300.pngbin0 -> 705 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-018.pngbin0 -> 2324 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-gr-rr-100x100.pngbin0 -> 309 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rg-rr-100x100.pngbin0 -> 325 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rr-gr-100x100.pngbin0 -> 330 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rr-rg-100x100.pngbin0 -> 330 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/r1-1.svg2
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/red.icobin0 -> 894 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-bottom-green-200x300.pngbin0 -> 702 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-center-green-200x300.pngbin0 -> 704 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-top-green-200x300.pngbin0 -> 700 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/text-orientation.js219
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/vertical-horizontal-list-markers.pngbin2451 -> 0 bytes
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100.svg2
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100_h100.svg2
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100_r1-1.svg2
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-001-ref.xht59
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-004-ref.xht59
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-007-ref.xht59
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-010-ref.xht59
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-013-ref.xht59
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-016-ref.xht60
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-019-ref.xht59
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-022-ref.xht59
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-025-ref.xht60
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-002-ref.xht32
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-004-ref.xht36
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-006-ref.xht36
-rw-r--r--tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-008-ref.xht31
105 files changed, 3822 insertions, 769 deletions
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-003-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-003-ref.xht
new file mode 100644
index 00000000000..42ae156b601
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-003-ref.xht
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ img#green-square
+ {
+ left: 80px;
+ position: relative;
+ top: 160px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
+
+ <div><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-007-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-007-ref.xht
new file mode 100644
index 00000000000..7a9ce8faa53
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-007-ref.xht
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ margin-left: 0.5em;
+ }
+
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#green-square
+ {
+ position: relative;
+ left: 96px; /* 80px + p's margin-left (1em) */
+ top: 160px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-009-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-009-ref.xht
new file mode 100644
index 00000000000..2dcb0626d6d
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-009-ref.xht
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ img#green-square
+ {
+ left: 80px;
+ position: relative;
+ top: 80px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
+
+ <div><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-013-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-013-ref.xht
new file mode 100644
index 00000000000..bc3ed999d2b
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-013-ref.xht
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ margin-left: 0.5em;
+ }
+
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#green-square
+ {
+ position: relative;
+ left: 96px; /* 80px + p's margin-left (1em) */
+ top: 80px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-155-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-155-ref.xht
new file mode 100644
index 00000000000..211c264b227
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-155-ref.xht
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ margin-left: 0.5em;
+ }
+
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#green-square
+ {
+ position: relative;
+ left: 176px;
+ top: 160px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-163-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-163-ref.xht
new file mode 100644
index 00000000000..b70581da393
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vlr-163-ref.xht
@@ -0,0 +1,37 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ margin-left: 0.5em;
+ }
+
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#green-square
+ {
+ position: relative;
+ left: 176px;
+ top: 80px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-002-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-002-ref.xht
new file mode 100644
index 00000000000..02602aff7e9
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-002-ref.xht
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ img#green-square
+ {
+ left: 160px;
+ position: relative;
+ top: 160px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
+
+ <div><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-004-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-004-ref.xht
new file mode 100644
index 00000000000..e392156969a
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-004-ref.xht
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ img#green-square
+ {
+ left: 160px;
+ position: relative;
+ top: 80px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <p><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /></p>
+
+ <div><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-006-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-006-ref.xht
new file mode 100644
index 00000000000..08e2d047f2a
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-006-ref.xht
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ body
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ margin-right: 0.5em;
+ }
+
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#green-square
+ {
+ position: relative;
+ right: 96px; /* 80px + p's margin-left (1em) */
+ top: 160px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-012-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-012-ref.xht
new file mode 100644
index 00000000000..5f9a5a93b08
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-012-ref.xht
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ body
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ margin-right: 0.5em;
+ }
+
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#green-square
+ {
+ position: relative;
+ right: 96px; /* 80px + p's margin-left (1em) */
+ top: 80px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-122-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-122-ref.xht
new file mode 100644
index 00000000000..cfaf201af95
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-122-ref.xht
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ body
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ margin-right: 0.5em;
+ }
+
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#green-square
+ {
+ position: relative;
+ right: 176px;
+ top: 160px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-130-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-130-ref.xht
new file mode 100644
index 00000000000..befab9cf83b
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/abs-pos-non-replaced-vrl-130-ref.xht
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <meta content="image" name="flags" />
+
+ <style type="text/css"><![CDATA[
+ body
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ margin-right: 0.5em;
+ }
+
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#green-square
+ {
+ position: relative;
+ right: 176px;
+ top: 80px;
+ }
+ ]]></style>
+ </head>
+
+ <body>
+
+ <div><img src="support/pass-cdts-abs-pos-non-replaced.png" width="246" height="36" alt="Image download support must be enabled" /><img id="green-square" src="support/swatch-green.png" width="80" height="80" alt="Image download support must be enabled" /></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/bidi-004-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/bidi-004-ref.xht
deleted file mode 100644
index 3a7dee8a79a..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/bidi-004-ref.xht
+++ /dev/null
@@ -1,44 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
- <title>CSS Reftest Reference</title>
-
- <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
-
- <style type="text/css"><![CDATA[
- div p { float: left; clear: left; border: solid; margin: 1em; padding: 0.5em; background: #FFC; color: black; }
- .control { line-height: 3em; }
- .control.start { border-style: solid none solid solid; padding: 0.4em 0 0.4em 1em; }
- .control.end { border-style: solid solid solid none; padding: 0.4em 1em 0.4em 0; }
- .a { color: navy; }
- .b { color: orange; }
- ]]></style>
-
- </head>
-
- <body>
-
- <p>The following two blocks should be identical, including overflow. (Force bidi: א)</p>
-
- <div>
- <p>
- <span class="control a start"> aaa bbb ccc ddd eee </span> <br />
- <span class="control b start"> fff </span>
- ggg hhh iii
- <span class="control a end"> jjj </span> <br />
- <span class="control b end"> kkk lll mmm nnn ooo </span>
- </p>
-
- <p>
- <span class="control a start"> aaa bbb ccc ddd eee </span> <br />
- <span class="control b start"> fff </span>
- ggg hhh iii
- <span class="control a end"> jjj </span> <br />
- <span class="control b end"> kkk lll mmm nnn ooo </span>
- </p>
- </div>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/bidi-004a-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/bidi-004a-ref.xht
deleted file mode 100644
index 7ee7adfd2a2..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/bidi-004a-ref.xht
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-
-
- <title>CSS Reftest Reference</title>
-
- <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
-
- <style type="text/css"><![CDATA[
- div > p
- {
- background-color: #FFC;
- border: solid;
- margin: 1em;
- padding: 0.5em;
- }
-
- span {line-height: 3em;}
-
- .navy {color: navy;}
-
- .orange {color: orange;}
- ]]></style>
-
- </head>
-
- <body>
-
- <p>The following two blocks should be identical, including overflow. (Force bidi: א)</p>
-
- <div>
- <p>
- <span class="navy"> aaa bbb ccc ddd eee </span> <br />
- <span class="orange"> fff </span>
- ggg hhh iii
- <span class="navy"> jjj </span> <br />
- <span class="orange"> kkk lll mmm nnn ooo </span>
- </p>
-
- <p>
- <span class="navy"> aaa bbb ccc ddd eee </span> <br />
- <span class="orange"> fff </span>
- ggg hhh iii
- <span class="navy"> jjj </span> <br />
- <span class="orange"> kkk lll mmm nnn ooo </span>
- </p>
- </div>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/border-collapse-005-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/border-collapse-005-ref.xht
new file mode 100644
index 00000000000..4faa6a3b7bc
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/border-collapse-005-ref.xht
@@ -0,0 +1,35 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head>
+ <meta charset="utf-8" />
+ <title>CSS (Tables) Reference File</title>
+ <link href="http://chrisrebert.com" rel="author" title="Chris Rebert" />
+ <style>
+table {
+ border-collapse: collapse;
+ border: 2px solid blue;
+}
+th {
+ font-weight: normal;
+ text-align: left;
+}
+ </style>
+</head>
+<body>
+ <table>
+ <tbody>
+ <tr>
+ <td>One</td>
+ <td>Two</td>
+ </tr>
+ </tbody>
+ <tfoot>
+ <tr>
+ <td>Three</td>
+ <td>Four</td>
+ </tr>
+ </tfoot>
+ </table>
+ <p>Test passes if there is a solid blue border around the <strong>entire perimeter</strong> of the table.</p>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-001-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-001-ref.xht
new file mode 100644
index 00000000000..3198c864ece
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-001-ref.xht
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+#cb {
+ position: absolute;
+ width: 100px;
+ height: 100px;
+}
+#test {
+ margin-right: 5px;
+ margin-top: 25px;
+ margin-left: 25px;
+ width: 70px;
+ height: 70px;
+ background:green;
+}
+</style>
+</head><body>
+ <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
+ <div id="cb">
+ <div id="test"></div>
+ </div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-007-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-007-ref.xht
new file mode 100644
index 00000000000..82b4689ad40
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-007-ref.xht
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ display: inline-block;
+ width: 100px;
+ height: 100px;
+ background: green;
+ margin: 10px;
+}
+
+body {
+ max-width: 700px;
+}
+</style>
+</head><body>
+ <p>Test passes if there are 20 <strong>filled green squares</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-008-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-008-ref.xht
new file mode 100644
index 00000000000..47d40af0a70
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-008-ref.xht
@@ -0,0 +1,27 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ width: 100px;
+ height: 150px;
+ background: green;
+ margin: 10px;
+ display: inline-block;
+}
+
+body {
+ max-width: 400px;
+}
+</style>
+</head><body>
+ <p>Test passes if there are 6 <strong>filled green rectangles</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-009-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-009-ref.xht
new file mode 100644
index 00000000000..40fd13456c6
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-009-ref.xht
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ width: 300px;
+ height: 100px;
+ background: green;
+ margin: 10px;
+ display: inline-block;
+}
+body {
+ max-width: 700px;
+}
+</style>
+</head><body>
+ <p>Test passes if there are 6 <strong>filled green rectangles</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-010-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-010-ref.xht
new file mode 100644
index 00000000000..6b73f47945d
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-010-ref.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ display: inline-block;
+ width: 70px;
+ height: 70px;
+ background: green;
+}
+
+</style>
+</head><body>
+ <p>Test passes if there are 2 <strong>filled green squares</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-012-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-012-ref.xht
new file mode 100644
index 00000000000..bed4cffa297
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-012-ref.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ margin-bottom: 10px;
+ width: 100px;
+ height: 70px;
+ background: green;
+}
+
+</style>
+</head><body>
+ <p>Test passes if there are 2 <strong>filled green rectangles</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-013-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-013-ref.xht
new file mode 100644
index 00000000000..3ab60e573f5
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-013-ref.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ display:inline-block;
+ height: 100px;
+ width: 70px;
+ background: green;
+}
+
+</style>
+</head><body>
+ <p>Test passes if there are 2 <strong>filled green rectangles</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-020-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-020-ref.xht
new file mode 100644
index 00000000000..9ee11444f1e
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-020-ref.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="mailto:florian@rivoal.net" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ display: inline-block;
+ width: 130px;
+ height: 130px;
+ background: green;
+}
+
+</style>
+</head><body>
+ <p>Test passes if there are 2 <strong>filled green squares</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-022-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-022-ref.xht
new file mode 100644
index 00000000000..390516b45e2
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-022-ref.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ display: inline-block;
+ width: 130px;
+ height: 150px;
+ background: green;
+}
+
+</style>
+</head><body>
+ <p>Test passes if there are 2 <strong>filled green rectangles</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-023-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-023-ref.xht
new file mode 100644
index 00000000000..5a811d5d316
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/box-sizing-023-ref.xht
@@ -0,0 +1,19 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><meta charset="utf-8" />
+<title>CSS Basic User Interface Reference File</title>
+<link href="http://florian.rivoal.net/" rel="author" title="Florian Rivoal" />
+<style>
+div {
+ height: 130px;
+ margin-bottom: 10px;
+ width: 300px;
+ background: green;
+}
+
+</style>
+</head><body>
+ <p>Test passes if there are 2 <strong>filled green rectangles</strong> and they are the <strong>same size</strong>.</p>
+ <div></div>
+ <div></div>
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-1-notref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-1-notref.xht
new file mode 100644
index 00000000000..d4b4bc2a91c
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-1-notref.xht
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test Reference</title>
+<link href="http://dbaron.org/" rel="author" title="L. David Baron" />
+<link href="http://www.mozilla.org/" rel="author" title="Mozilla" />
+<meta content="" name="flags" />
+<style>
+/* spec ambiguous whether font-size-adjust influences line-height: normal */
+body { line-height: 1.2 }
+</style>
+
+</head><body><p>before</p>
+<p>zero</p>
+<p>after</p>
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-1-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-1-ref.xht
new file mode 100644
index 00000000000..4635407f4a4
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-1-ref.xht
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test Reference</title>
+<link href="http://dbaron.org/" rel="author" title="L. David Baron" />
+<link href="http://www.mozilla.org/" rel="author" title="Mozilla" />
+<link href="reference/font-size-zero-1-notref.xht" rel="mismatch" />
+<meta content="" name="flags" />
+<style>
+/* spec ambiguous whether font-size-adjust influences line-height: normal */
+body { line-height: 1.2 }
+
+p { margin: 1em 0 }
+p.first { margin-bottom: 2em }
+</style>
+
+</head><body><p class="first">before</p>
+<p>after</p>
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-2-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-2-ref.xht
new file mode 100644
index 00000000000..4d96519d0e8
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/font-size-zero-2-ref.xht
@@ -0,0 +1,14 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Test Reference</title>
+<link href="http://dbaron.org/" rel="author" title="L. David Baron" />
+<link href="http://www.mozilla.org/" rel="author" title="Mozilla" />
+<meta content="" name="flags" />
+<style>
+/* spec ambiguous whether font-size-adjust influences line-height: normal */
+body { line-height: 1.2 }
+</style>
+
+</head><body><p>before</p>
+<p>&#xA0;</p>
+<p>after</p>
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-001-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-001-ref.xht
deleted file mode 100644
index a50243ae7a9..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-001-ref.xht
+++ /dev/null
@@ -1,55 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- div.control {
- font-size: 2em;
- background-color: orange;
- }
- img {
- margin-left: -300px;
- }
- div.control > span {
- background-color: yellow;
- padding: 0em 1em;
- }
- div.control1 {
- color: orange;
- margin-top: 1em;
- }
- div.control1 > span {
- color: yellow;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of glyph 'L' is touching a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <div class="control control1">LLLL<span>ABCD</span></div>
- <div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></div>
-
- <div class="control control1">LLLL<span>ABCD</span></div>
- <div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></div>
-
- <div class="control control1">LLLL<span>ABCD</span></div>
- <div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></div>
-
- <div class="control control1">LLLL<span>ABCD</span></div>
- <div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></div>
-
- <div class="control control1">LLLL<span>ABCD</span></div>
- <div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></div>
-
- <div class="control control1">LLLL<span>ABCD</span></div>
- <div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></div>
-
- <div class="control control1">LLLL<span>ABCD</span></div>
- <div class="control control2">LLLL<span>LLLLL</span>LLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></div>
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-002-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-002-ref.xht
new file mode 100644
index 00000000000..cfd2fe67258
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-002-ref.xht
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2015-07-20 -->
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img
+ {
+ padding-left: 90px; /* 60 px (padding-left) + 30px (the position difference of box) */
+ }
+
+ img + br + img
+ {
+ padding-left: 60px; /* 60 px (padding-left) */
+ }
+
+ img + br + img + img
+ {
+ padding-left: 0;
+ }
+
+ img + br + img + img + br + img
+ {
+ padding-left: 105px; /* 60 px (padding-left) + 45px (the position difference of box)
+ }
+ ]]></style>
+
+</head>
+
+<body>
+
+<p>Test passes if 2 orange squares are centered with respect to a blue square.</p>
+
+<div>
+ <img src="support/swatch-orange.png" width="60" height="60" alt="Image download support must be enabled" /><br /><!--
+--><img src="support/swatch-blue.png" width="120" height="120" alt="Image download support must be enabled" /><!--
+--><img src="support/swatch-yellow.png" width="120" height="120" alt="Image download support must be enabled" /><br /><!--
+--><img src="support/swatch-orange.png" width="30" height="30" alt="Image download support must be enabled" /></div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-003-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-003-ref.xht
new file mode 100644
index 00000000000..1295e356966
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-003-ref.xht
@@ -0,0 +1,48 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2015-07-20 -->
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img
+ {
+ padding-left: 210px; /* 60 px (padding-left) + 120px (blue box width) + 30px (the position difference of box) */
+ }
+
+ img + br + img
+ {
+ padding-left: 60px; /* 60 px (padding-left) */
+ }
+
+ img + br + img + img
+ {
+ padding-left: 0;
+ }
+
+ img + br + img + img + br + img
+ {
+ padding-left: 225px; /* 60 px (padding-left) + 120px (blue box width) + 45px (the position difference of box)
+ }
+ ]]></style>
+
+</head>
+
+<body>
+
+<p>Test passes if 2 orange squares are centered with respect to a blue square.</p>
+
+<div>
+ <img src="support/swatch-orange.png" width="60" height="60" alt="Image download support must be enabled" /><br /><!--
+--><img src="support/swatch-yellow.png" width="120" height="120" alt="Image download support must be enabled" /><!--
+--><img src="support/swatch-blue.png" width="120" height="120" alt="Image download support must be enabled" /><br /><!--
+--><img src="support/swatch-orange.png" width="30" height="30" alt="Image download support must be enabled" /></div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-004-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-004-ref.xht
deleted file mode 100644
index 85c00c36a71..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-004-ref.xht
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- div.control {
- font-size: 2em;
- background-color: orange;
- }
- img {
- margin-left: -300px;
- }
-
- /* inline-block */
- .inline-block {
- display: inline-block;
- }
- .descendant-block {
- display: block;
- height: 1em;
- background-color: yellow;
- padding-left: 1em;
- padding-right: 1em;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of glyph 'L' and the bottom of yellow square is touching a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <div class="control">
- <p>LLLLL<span class="inline-block">
- <span class="descendant-block"></span>
- <span class="descendant-block"></span>
- </span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></p>
- </div>
-
- <div class="control">
- <p>LLLLL<span class="inline-block">
- <span class="descendant-block"></span>
- <span class="descendant-block"></span>
- </span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></p>
- </div>
-
- <div class="control">
- <p>LLLLL<span class="inline-block">
- <span class="descendant-block"></span>
- <span class="descendant-block"></span>
- </span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></p>
- </div>
-
- <div class="control">
- <p>LLLLL<span class="inline-block">
- <span class="descendant-block"></span>
- <span class="descendant-block"></span>
- </span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></p>
- </div>
-
- <div class="control">
- <p>LLLLL<span class="inline-block">
- <span class="descendant-block"></span>
- <span class="descendant-block"></span>
- </span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></p>
- </div>
-
- <div class="control">
- <p>LLLLL<span class="inline-block">
- <span class="descendant-block"></span>
- <span class="descendant-block"></span>
- </span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></p>
- </div>
-
- <div class="control">
- <p>LLLLL<span class="inline-block">
- <span class="descendant-block"></span>
- <span class="descendant-block"></span>
- </span>LLLLL<img src="support/blue-horiz-line-320x1.png" alt="Image download support must be enabled" /></p>
- </div>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-006-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-006-ref.xht
new file mode 100644
index 00000000000..1ac06ef2f05
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-006-ref.xht
@@ -0,0 +1,29 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2015-07-21 -->
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+
+ img
+ {
+ padding-left: 84px; /* 60px (padding-left) + 24px (the left edge position of box) */
+ vertical-align: top;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the <strong>left edge</strong> of an irregular polygon is straight and unbroken.</p>
+
+ <div>
+ <img src="support/swatch-fuchsia.png" width="48" height="60" alt="Image download support must be enabled" /><br /><!--
+ --><img src="support/swatch-fuchsia.png" width="216" height="120" alt="Image download support must be enabled" /><br /><!--
+ --><img src="support/swatch-fuchsia.png" width="24" height="30" alt="Image download support must be enabled" />
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-007-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-007-ref.xht
new file mode 100644
index 00000000000..af276765500
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-007-ref.xht
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2015-07-21 -->
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img
+ {
+ padding-left: 228px; /* 60 px (padding-left) + 120px (first line-block width) + 48px (the position difference of box) */
+ }
+
+ img + br + img
+ {
+ padding-left: 60px; /* 60 px (padding-left) */
+ }
+
+ img + br + img + br + img
+ {
+ padding-left: 252px; /* 60 px (padding-left) + 120px (first line-block width) + 72px (the position difference of box) */
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the <strong>right edge</strong> of an irregular polygon is straight and unbroken.</p>
+
+ <div>
+ <img src="support/swatch-aqua.png" width="48" height="60" alt="Image download support must be enabled" /><br /><!--
+ --><img src="support/swatch-aqua.png" width="216" height="120" alt="Image download support must be enabled" /><br /><!--
+ --><img src="support/swatch-aqua.png" width="24" height="30" alt="Image download support must be enabled" />
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-009-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-009-ref.xht
new file mode 100644
index 00000000000..750090cd261
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-009-ref.xht
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2015-07-21 -->
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img
+ {
+ padding-left: 192px; /* 60 px (padding-left) + 120px (width of inline-block) + 12px (the position difference of box) */
+ }
+
+ img + br + img
+ {
+ padding-left: 60px; /* 60 px (padding-left) */
+ }
+
+ img + br + img + br + img
+ {
+ padding-left: 198px; /* 60 px (padding-left) + 120px (width of inline-block)+ 18px (the position difference of box) */
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the <strong>right edge</strong> of an irregular polygon is straight and unbroken.</p>
+
+ <div>
+ <img src="support/swatch-olive.png" width="12" height="60" alt="Image download support must be enabled" /><br /><!--
+ --><img src="support/swatch-olive.png" width="144" height="120" alt="Image download support must be enabled" /><br /><!--
+ --><img src="support/swatch-olive.png" width="6" height="30" alt="Image download support must be enabled" />
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-010-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-010-ref.xht
new file mode 100644
index 00000000000..ecb1c1b09a9
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/inline-block-alignment-010-ref.xht
@@ -0,0 +1,42 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <link rel="reviewer" title="Gerard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2015-07-21 -->
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img
+ {
+ padding-left: 156px; /* 60 px (padding-left) + 48px (the position difference of box) + 48px (ascent width) */
+ }
+
+ img + br + img
+ {
+ padding-left: 156px; /* 60 px (padding-left) + 96px (ascent width)*/
+ }
+
+ img + br + img + br + img
+ {
+ padding-left: 156px; /* 60 px (padding-left) + 72px (the position difference of box) + 24px (ascent width) */
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if the <strong>left edge</strong> of an irregular polygon is straight and unbroken.</p>
+
+ <div>
+ <img src="support/swatch-teal.png" width="12" height="60" alt="Image download support must be enabled" /><br /><!--
+ --><img src="support/swatch-teal.png" width="144" height="120" alt="Image download support must be enabled" /><br /><!--
+ --><img src="support/swatch-teal.png" width="6" height="30" alt="Image download support must be enabled" />
+ </div>
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/painting-order-underline-001-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/painting-order-underline-001-ref.xht
new file mode 100644
index 00000000000..c644a0afc9a
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/painting-order-underline-001-ref.xht
@@ -0,0 +1,30 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+ <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+
+ <title>CSS Reftest Reference</title>
+
+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
+
+ <style type="text/css"><![CDATA[
+ div
+ {
+ background-color: green;
+ height: 40px;
+ position: relative;
+ top: 160px;
+ width: 400px;
+ }
+ ]]></style>
+
+ </head>
+
+ <body>
+
+ <p>Test passes if there is a thick green bar and <strong>no red</strong>.</p>
+
+ <div></div>
+
+ </body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/CSSHWOrientationTest.otf b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/CSSHWOrientationTest.otf
new file mode 100644
index 00000000000..c919d9091d0
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/CSSHWOrientationTest.otf
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/LICENSE b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/LICENSE
new file mode 100644
index 00000000000..ac5f0b04320
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/LICENSE
@@ -0,0 +1,31 @@
+CSS Half-Width Orientation Test and CSS Full-Width Orientation Test are released under the SIL Open Font License - please read it carefully and do not download the fonts unless you agree to the the terms of the license:
+Copyright © 2013 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Names CSS Half-Width Orientation Test and CSS Full-Width Orientation Test
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
+
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
+The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
+"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
+"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
+"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
+"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
+1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
+2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
+3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
+5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/README.md b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/README.md
new file mode 100644
index 00000000000..2f757669727
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/adobe-fonts/README.md
@@ -0,0 +1,36 @@
+CSS Orientation Test
+====
+
+Overview
+----
+CSS Orientation Test are special-purpose OpenType fonts. This open source project provides all of the source files that were used to build these OpenType fonts by using the AFDKO *makeotf* tool.
+
+Getting Involved
+----
+Send suggestions for changes to the CSS Orientation Test project maintainer, lunde@adobe.com, for consideration.
+
+Building
+====
+
+Pre-built font binaries
+----
+The installable font resources (font binaries) are not part of the source files. They are available on [Open@Adobe](https://sourceforge.net/projects/csso9ntestfonts.adobe/files/).
+
+
+Requirements
+----
+
+For building binary font files from source, installation of the [Adobe Font Development Kit for OpenType](http://www.adobe.com/devnet/opentype/afdko.html) (AFDKO) is necessary. The AFDKO tools are widely used for font development today, and are part of most font editor applications.
+
+Building the fonts
+----
+
+The key to building OpenType fonts is *makeotf*, which is part of AFDKO. Information and usage instructions can be found by executing *makeotf -h*.
+
+In this repository, all necessary files are in place for building the OpenType fonts. For example, build a binary OTF font for the full-width version like this, which also includes a post-process for inserting a "stub" 'DSIG' table:
+
+ % makeotf -f cidfont.ps -r -ch UnicodeAll-UTF32-H
+ % sfntedit -a DSIG=DSIG.bin CSSFWOrientationTest.otf
+ % sfntedit -f CSSFWOrientationTest.otf
+
+That is all.
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-1col-2row-320x320.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-1col-2row-320x320.png
new file mode 100644
index 00000000000..7ca197bc06e
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-1col-2row-320x320.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-1col-3row-320x320.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-1col-3row-320x320.png
new file mode 100644
index 00000000000..f5c13ab550d
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-1col-3row-320x320.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-4col-2row-320x320.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-4col-2row-320x320.png
new file mode 100644
index 00000000000..052d224df11
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-4col-2row-320x320.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-4col-3row-320x320.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-4col-3row-320x320.png
new file mode 100644
index 00000000000..1826531268a
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/bg-red-4col-3row-320x320.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html
new file mode 100644
index 00000000000..5af681f14eb
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-007.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-007 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ border-left: green solid 25px;
+ border-right: green solid 75px;
+ height: 100px;
+ left: auto;
+ position: absolute;
+ right: 80%;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 1. [If] 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ auto : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 80% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ (solve) : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 0px : width (shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 400px : right (80% of 500px == 400px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 0 .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html
new file mode 100644
index 00000000000..d5d94382ea2
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-009.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-009 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ border-left: green solid 25px;
+ border-right: green solid 75px;
+ height: 100px;
+ left: auto;
+ position: absolute;
+ right: 20%;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 1. [If] 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ auto : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 20% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ (solve) : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 0px : width (shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 400px : right (20% of 500px == 100px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 300px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html
new file mode 100644
index 00000000000..887565e66d4
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-015.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-015 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ border-left: green solid 25px;
+ border-right: green solid 75px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: auto;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 3. [If] 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit. Then solve for 'right'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width (set to shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px == 300px)
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 0px : width (shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px.
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html
new file mode 100644
index 00000000000..c38de525145
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-017.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-017 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ border-left: green solid 25px;
+ border-right: green solid 75px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: auto;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 3. [If] 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit. Then solve for 'right'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width (set to shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px == 300px)
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 0px : width (shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px.
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html
new file mode 100644
index 00000000000..66be0f4eba9
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-019.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-019 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green solid 35px;
+ border-right: green solid 15px;
+ height: 100px;
+ left: auto;
+ position: absolute;
+ right: 80%;
+ top: 0px;
+ width: 50px;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ auto : left
+ +
+ 0px : margin-left
+ +
+ 35px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 50px : width
+ +
+ 0px : padding-right
+ +
+ 15px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 80% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ (solve) : left
+ +
+ 0px : margin-left
+ +
+ 35px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 50px : width
+ +
+ 0px : padding-right
+ +
+ 15px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 400px : right (80% of 500px == 400px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 0px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html
new file mode 100644
index 00000000000..eff5f71a450
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-021.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-021 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green solid 35px;
+ border-right: green solid 15px;
+ height: 100px;
+ left: auto;
+ position: absolute;
+ right: 80%;
+ top: 0px;
+ width: 50px;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ auto : left
+ +
+ 0px : margin-left
+ +
+ 35px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 50px : width
+ +
+ 0px : padding-right
+ +
+ 15px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 80% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ (solve) : left
+ +
+ 0px : margin-left
+ +
+ 35px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 50px : width
+ +
+ 0px : padding-right
+ +
+ 15px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 400px : right (80% of 500px == 400px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 0px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html
new file mode 100644
index 00000000000..2da3bf3dd53
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-023.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-023 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: 20%;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 5. [If] 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 20% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ solve : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 100px : right (20% of 500px == 100px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used width value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html
new file mode 100644
index 00000000000..572557eb339
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-025.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-025 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: 20%;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 5. [If] 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 20% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ solve : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 100px : right (20% of 500px == 100px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used width value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html
new file mode 100644
index 00000000000..8537a945fbc
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-027.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-027 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: auto;
+ top: 0px;
+ width: 20%;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 6. [If] 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 20% : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ auto : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 100px : width (20% of 500px == 100px)
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html
new file mode 100644
index 00000000000..95047f16a92
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-029.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-029 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: auto;
+ top: 0px;
+ width: 20%;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ 6. [If] 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 20% : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ auto : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 100px : width (20% of 500px == 100px)
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html
new file mode 100644
index 00000000000..4f1aa674eba
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-031.html
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-031 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - overconstrained values with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ margin-left: 0px;
+ margin-right: 0px;
+ position: absolute;
+ right: 40%;
+ top: 0px;
+ width: 20%;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 20% : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 40% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 100px : width (20% of 500px == 100px)
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ignore and solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html
new file mode 100644
index 00000000000..1f35ff47dd6
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vlr-033.html
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vlr-033 in 'writing-mode: vertical-lr'</title>
+
+ <!--
+ position absolute and 'vertical-lr' - overconstrained values with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 20%;
+ margin-left: 0px;
+ margin-right: 0px;
+ position: absolute;
+ right: 20%;
+ top: 0px;
+ width: 20%;
+ writing-mode: vertical-lr;
+ }
+
+ /*
+ "
+ If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 20% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 20% : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 20% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ignore and solve : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 100px : width (20% of 500px == 100px)
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 100px : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 300px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html
new file mode 100644
index 00000000000..3f4f1c935ca
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-006.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-006 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ border-left: green solid 25px;
+ border-right: green solid 75px;
+ height: 100px;
+ left: auto;
+ position: absolute;
+ right: 80%;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 1. [If] 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ auto : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 80% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ (solve) : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 0px : width (shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 400px : right (80% of 500px == 400px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 0px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html
new file mode 100644
index 00000000000..1c0bb78e74d
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-008.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-008 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'left' and 'width' are 'auto', 'right' is not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ border-left: green solid 25px;
+ border-right: green solid 75px;
+ height: 100px;
+ left: auto;
+ position: absolute;
+ right: 20%;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 1. [If] 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ auto : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 20% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ (solve) : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 0px : width (shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 100px : right (20% of 500px == 100px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 300px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html
new file mode 100644
index 00000000000..c193112b600
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-014.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-014 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ border-left: green solid 25px;
+ border-right: green solid 75px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: auto;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 3. [If] 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit. Then solve for 'right'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width (set to shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px == 300px)
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 0px : width (shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px.
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html
new file mode 100644
index 00000000000..204a08ef3df
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-016.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-016 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'width' and 'right' are 'auto' and 'left' is not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ border-left: green solid 25px;
+ border-right: green solid 75px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: auto;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 3. [If] 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit. Then solve for 'right'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width (set to shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px == 300px)
+ +
+ 0px : margin-left
+ +
+ 25px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 0px : width (shrink-to-fit)
+ +
+ 0px : padding-right
+ +
+ 75px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px.
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html
new file mode 100644
index 00000000000..a71927cf3a8
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-018.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-018 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green solid 35px;
+ border-right: green solid 15px;
+ height: 100px;
+ left: auto;
+ position: absolute;
+ right: 80%;
+ top: 0px;
+ width: 50px;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ auto : left
+ +
+ 0px : margin-left
+ +
+ 35px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 50px : width
+ +
+ 0px : padding-right
+ +
+ 15px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 80% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ (solve) : left
+ +
+ 0px : margin-left
+ +
+ 35px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 50px : width
+ +
+ 0px : padding-right
+ +
+ 15px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 400px : right (80% of 500px == 400px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 0px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html
new file mode 100644
index 00000000000..e1054bc2a96
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-020.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-020 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'left' is 'auto', 'width' and 'right' are not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green solid 35px;
+ border-right: green solid 15px;
+ height: 100px;
+ left: auto;
+ position: absolute;
+ right: 80%;
+ top: 0px;
+ width: 50px;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 4. [If] 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ auto : left
+ +
+ 0px : margin-left
+ +
+ 35px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 50px : width
+ +
+ 0px : padding-right
+ +
+ 15px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 80% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ (solve) : left
+ +
+ 0px : margin-left
+ +
+ 35px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 50px : width
+ +
+ 0px : padding-right
+ +
+ 15px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 400px : right (80% of 500px == 400px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 0px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html
new file mode 100644
index 00000000000..39f297f1b9c
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-022.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-022 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: 20%;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 5. [If] 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 20% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ solve : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 100px : right (20% of 500px == 100px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used width value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html
new file mode 100644
index 00000000000..26e0ec67fd1
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-024.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-024 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'width' is 'auto', 'left' and 'right' are not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: 20%;
+ top: 0px;
+ width: auto;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 5. [If] 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ auto : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 20% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ solve : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 100px : right (20% of 500px == 100px)
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used width value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html
new file mode 100644
index 00000000000..a0b80d99e3a
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-026.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-026 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: auto;
+ top: 0px;
+ width: 20%;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 6. [If] 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 20% : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ auto : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 100px : width (20% of 500px == 100px)
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html
new file mode 100644
index 00000000000..62d74144fee
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-028.html
@@ -0,0 +1,94 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-028 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - 'right' is 'auto', 'left' and 'width' are not 'auto' with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ position: absolute;
+ right: auto;
+ top: 0px;
+ width: 20%;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ 6. [If] 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 20% : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ auto : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 100px : width (20% of 500px == 100px)
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html
new file mode 100644
index 00000000000..21efbe52bc5
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-030.html
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-030 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - overconstrained values with 'direction: ltr' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: ltr;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 60%;
+ margin-left: 0px;
+ margin-right: 0px;
+ position: absolute;
+ right: 40%;
+ top: 0px;
+ width: 20%;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 60% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 20% : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 40% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ 300px : left (60% of 500px)
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 100px : width (20% of 500px == 100px)
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ignore and solve : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used right offset value must be 100px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html
new file mode 100644
index 00000000000..748f325d8d7
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-abs-pos-non-replaced-icb-vrl-032.html
@@ -0,0 +1,96 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html><head>
+
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type">
+
+ <title>Embedded HTML document for abs-pos-non-replaced-icb-vrl-032 in 'writing-mode: vertical-rl'</title>
+
+ <!--
+ position absolute and 'vertical-rl' - overconstrained values with 'direction: rtl' in initial containing block
+ -->
+
+ <style type="text/css">
+ html
+ {
+ direction: rtl;
+ }
+
+ div
+ {
+ background-color: green;
+ border-left: green none 0px;
+ border-right: green none 0px;
+ height: 100px;
+ left: 20%;
+ margin-left: 0px;
+ margin-right: 0px;
+ position: absolute;
+ right: 20%;
+ top: 0px;
+ width: 20%;
+ writing-mode: vertical-rl;
+ }
+
+ /*
+ "
+ If the values are over-constrained, ignore the value for 'left' (in case the 'direction' property of the containing block is 'rtl') or 'right' (in case 'direction' is 'ltr') and solve for that value.
+ "
+ 10.3.7 Absolutely positioned, non-replaced elements
+ http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width
+
+ So:
+
+ 20% : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 20% : width
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 20% : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ becomes
+
+ignore and solve : left
+ +
+ 0px : margin-left
+ +
+ 0px : border-left-width
+ +
+ 0px : padding-left
+ +
+ 100px : width (20% of 500px == 100px)
+ +
+ 0px : padding-right
+ +
+ 0px : border-right-width
+ +
+ 0px : margin-right
+ +
+ 100px : right
+ ====================
+ 500px : width of containing block (width of Initial Containing Block)
+
+ so used left offset value must be 300px .
+
+ */
+ </style>
+ </head>
+
+ <body>
+
+ <div></div>
+
+
+</body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-002.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-002.html
new file mode 100644
index 00000000000..044da84cff8
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-002.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html><head>
+
+ <meta charset="UTF-8">
+
+ <link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
+ <link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2015-05-01 -->
+
+ <title>Embedded HTML document for background-size-document-root-vrl-002</title>
+
+ <style>
+ html
+ {
+ background-image: url("swatch-green.png");
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ writing-mode: vertical-rl;
+
+ width: 100px;
+ }
+ </style>
+
+ </head>
+
+<body></body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-004.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-004.html
new file mode 100644
index 00000000000..68fca9ad435
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-004.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html><head>
+
+ <meta charset="UTF-8">
+
+ <link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
+ <link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2015-05-01 -->
+
+ <title>Embedded HTML document for background-size-document-root-vrl-004</title>
+
+ <style>
+ html
+ {
+ background-image: url("swatch-green.png");
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ writing-mode: vertical-rl;
+
+ border-right: green solid 20px;
+ width: 80px;
+ }
+ </style>
+
+ </head>
+
+<body></body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-006.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-006.html
new file mode 100644
index 00000000000..38a614d2346
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-006.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html><head>
+
+ <meta charset="UTF-8">
+
+ <link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
+ <link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2015-05-01 -->
+
+ <title>Embedded HTML document for background-size-document-root-vrl-006</title>
+
+ <style>
+ html
+ {
+ background-image: url("swatch-green.png");
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ writing-mode: vertical-rl;
+
+ margin-right: 50px;
+ padding-right: 50px;
+ width: 50px;
+ }
+ </style>
+
+ </head>
+
+<body></body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-008.html b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-008.html
new file mode 100644
index 00000000000..048ad073944
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/embedded-doc-for-background-size-root-vrl-008.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html><head>
+
+ <meta charset="UTF-8">
+
+ <link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
+ <link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2015-05-01 -->
+
+ <title>Embedded HTML document for background-size-document-root-vrl-008</title>
+
+ <style>
+ html
+ {
+ background-image: url("swatch-green.png");
+ background-repeat: no-repeat;
+ background-size: 100% 100%;
+ writing-mode: vertical-rl;
+
+ border-left: white solid 20px;
+ margin-right: 50px;
+ padding-right: 50px;
+ width: 50px;
+ }
+ </style>
+
+ </head>
+
+<body></body></html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/green.ico b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/green.ico
new file mode 100644
index 00000000000..691f61166f0
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/green.ico
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/h100.svg b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/h100.svg
new file mode 100644
index 00000000000..e7bd34342c1
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/h100.svg
@@ -0,0 +1,2 @@
+<svg xmlns="http://www.w3.org/2000/svg" style="background: green" height="100">
+<g xmlns:html="http://www.w3.org/1999/xhtml" id="testmeta"><html:link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"/></g></svg> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/h100_r1-1.svg b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/h100_r1-1.svg
new file mode 100644
index 00000000000..f77cfcbb9d4
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/h100_r1-1.svg
@@ -0,0 +1,2 @@
+<svg xmlns="http://www.w3.org/2000/svg" style="background: green" height="100" viewBox="0 0 100 100">
+<g xmlns:html="http://www.w3.org/1999/xhtml" id="testmeta"><html:link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"/></g></svg> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/left-bottom-green-200x300.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/left-bottom-green-200x300.png
new file mode 100644
index 00000000000..30668751dfb
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/left-bottom-green-200x300.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/left-center-green-200x300.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/left-center-green-200x300.png
new file mode 100644
index 00000000000..b2645c0fe69
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/left-center-green-200x300.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-018.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-018.png
new file mode 100644
index 00000000000..22f51030c36
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pass-cdts-bg-pos-vrl-018.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-gr-rr-100x100.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-gr-rr-100x100.png
new file mode 100644
index 00000000000..6fba8358309
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-gr-rr-100x100.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rg-rr-100x100.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rg-rr-100x100.png
new file mode 100644
index 00000000000..797e289e059
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rg-rr-100x100.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rr-gr-100x100.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rr-gr-100x100.png
new file mode 100644
index 00000000000..97aac24065c
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rr-gr-100x100.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rr-rg-100x100.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rr-rg-100x100.png
new file mode 100644
index 00000000000..177743874e2
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/pattern-rr-rg-100x100.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/r1-1.svg b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/r1-1.svg
new file mode 100644
index 00000000000..7f4b4516635
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/r1-1.svg
@@ -0,0 +1,2 @@
+<svg xmlns="http://www.w3.org/2000/svg" style="background: green" viewBox="0 0 100 100">
+<g xmlns:html="http://www.w3.org/1999/xhtml" id="testmeta"><html:link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"/></g></svg> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/red.ico b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/red.ico
new file mode 100644
index 00000000000..22a7b36fe3e
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/red.ico
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-bottom-green-200x300.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-bottom-green-200x300.png
new file mode 100644
index 00000000000..a3c6bb63b64
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-bottom-green-200x300.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-center-green-200x300.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-center-green-200x300.png
new file mode 100644
index 00000000000..8f54bf5a894
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-center-green-200x300.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-top-green-200x300.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-top-green-200x300.png
new file mode 100644
index 00000000000..313c37f4dfb
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/right-top-green-200x300.png
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/text-orientation.js b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/text-orientation.js
new file mode 100644
index 00000000000..a2b5ad6d617
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/text-orientation.js
@@ -0,0 +1,219 @@
+(function () {
+ function OrientationTester(container, orientation) {
+ this.container = container;
+ this.setOrientation(orientation);
+ }
+ extend(OrientationTester.prototype, {
+ setOrientation: function (orientation) {
+ this.orientation = orientation;
+ },
+ measure: function (results) {
+ this.results = results;
+ this._measureNode(this.container);
+ },
+ _measureNode: function (node, block) {
+ switch (node.nodeType) {
+ case Node.ELEMENT_NODE:
+ var blockOverride = node.dataset.block;
+ if (blockOverride)
+ block = blockOverride;
+ var nodes = node.childNodes;
+ for (var i = 0; i < nodes.length; i++)
+ this._measureNode(nodes[i], block);
+ return;
+ case Node.TEXT_NODE:
+ break;
+ default:
+ return;
+ }
+
+ if (this.orientation == "R") {
+ var advanceExpected = 8;
+ var advanceFailed = 4;
+ } else {
+ advanceExpected = 4;
+ advanceFailed = 8;
+ }
+
+ var range = document.createRange();
+ var text = node.textContent;
+ for (var ich = 0; ich < text.length; ich++) {
+ var code = text.charCodeAt(ich);
+ if (code == 10 || code == 13)
+ continue;
+ range.setStart(node, ich);
+ if (code >= 0xD800 && code <= 0xDBFF) {
+ var next = text.charCodeAt(ich+1);
+ if (next >= 0xDC00 && next <= 0xDFFF) {
+ ich++;
+ code = ((code & 0x3FF) << 10) + (next & 0x3FF) + 0x10000;
+ }
+ }
+ range.setEnd(node, ich + 1);
+ rect = range.getBoundingClientRect();
+ if (rect.width == 16) {
+ if (rect.height == advanceExpected) {
+ this.results.passCount++;
+ continue;
+ }
+ //log("U+" + stringFromUnicode(code) + " " + rect.width + "x" + rect.height);
+ if (rect.height == advanceFailed) {
+ this.results.failed(this, code, block);
+ continue;
+ }
+ }
+ this.results.inconclusive(this, code, block, rect);
+ }
+ }});
+
+ function Results(name) {
+ var block = document.createElement("details");
+ this.summary = appendChildElement(block, "summary");
+ this.summary.textContent = name;
+ var typeList = appendChildElement(block, "ul");
+ this.failList = appendChildElement(appendChildElement(typeList, "li", "Failures"), "ol");
+ this.inconclusiveList = appendChildElement(appendChildElement(typeList, "li", "Inconclusives"), "ol");
+ details.appendChild(block);
+ this.passCount = 0;
+ this.failCount = 0;
+ this.inconclusiveCount = 0;
+ }
+ extend(Results.prototype, {
+ failed: function (test, code, block) {
+ this.failCount++;
+ this.append(this.failList, test, code, block);
+ },
+ inconclusive: function (test, code, block, rect) {
+ this.inconclusiveCount++;
+ this.append(this.inconclusiveList, test, code, block, " but inconclusive (rendered as " + rect.width + "x" + rect.height + ")");
+ },
+ append: function (list, test, code, block, message) {
+ var text = stringFromUnicode(code) + " should be " + test.orientation;
+ if (block)
+ text = block + ": " + text;
+ if (message)
+ text += message;
+ appendChildElement(list, "li", text);
+ },
+ done: function (test) {
+ this.summary.textContent += " (" + this.passCount + " passes, " +
+ this.failCount + " fails, " +
+ this.inconclusiveCount + " inconclusives)";
+ assert_equals(this.failCount, 0, "Fail count");
+ assert_greater_than(this.passCount, 0, "Pass count");
+ test.done();
+ }});
+
+ function Runner() {
+ var nodes = document.querySelectorAll("div[data-vo]");
+ this.testers = [];
+ for (var i = 0; i < nodes.length; i++) {
+ var node = nodes[i];
+ var vo = node.dataset.vo;
+ var tester = new OrientationTester(node, vo);
+ tester.test = async_test("Default orientation for vo=" + vo);
+ this.testers.push(tester);
+ }
+ this.testU = async_test("Orientation=Upright");
+ this.testR = async_test("Orientation=Rotated");
+ }
+ extend(Runner.prototype, {
+ run: function () {
+ log("Started");
+ var start = new Date;
+
+ for (var i = 0; i < this.testers.length; i++) {
+ var tester = this.testers[i];
+ var test = tester.test;
+ test.step(function () {
+ var results = new Results(test.name);
+ tester.measure(results);
+ results.done(test);
+ });
+ }
+ this.runOrientation(this.testU, "U");
+ this.runOrientation(this.testR, "R");
+
+ log("Elapsed " + (new Date() - start));
+ done();
+ },
+ runOrientation: function (test, orientation) {
+ container.classList.add(orientation);
+ var results = new Results(test.name);
+ var me = this;
+ test.step(function () {
+ for (var i = 0; i < me.testers.length; i++) {
+ var tester = me.testers[i];
+ tester.setOrientation(orientation);
+ tester.measure(results);
+ }
+ results.done(test);
+ })
+ container.classList.remove(orientation);
+ }});
+
+ setup({explicit_done:true, explicit_timeout:true});
+ var runner = new Runner();
+ window.onload = function () {
+ if (window.location.search == "?wait") {
+ log("Sleeping 5 secs for debug purpose");
+ return setTimeout(run, 5000);
+ }
+ run();
+ }
+
+ function run() {
+ onFontReady("16px orientation", function () { runner.run(); });
+ }
+
+ function onFontReady(font, func) {
+ log("Waiting test fonts to load");
+ if (document.fonts) {
+ if ('load' in document.fonts)
+ return document.fonts.load(font).then(func);
+ if ('ready' in document.fonts)
+ return document.fonts.ready.then(func);
+ }
+ document.offsetTop; // last resort to load @font-face
+ func();
+ }
+
+ function arrayFromRangesByValue(dict) {
+ var array = [];
+ for (var value in dict) {
+ var ranges = dict[value];
+ for (var i = 0; i < ranges.length; i += 2) {
+ var to = ranges[i+1];
+ for (var code = ranges[i]; code <= to; code++)
+ array[code] = value;
+ }
+ }
+ return array;
+ };
+
+ function stringFromUnicode(code) {
+ var hex = code.toString(16).toUpperCase();
+ if (hex.length < 4) {
+ hex = "0000" + hex;
+ hex = hex.substr(hex.length - 4);
+ }
+ return hex + ' "' + String.fromCharCode(code) + '"';
+ }
+
+ function appendChildElement(parent, tag, text) {
+ var node = document.createElement(tag);
+ if (text)
+ node.textContent = text;
+ parent.appendChild(node);
+ return node;
+ }
+
+ function extend(target, dict) {
+ for (var key in dict)
+ target[key] = dict[key];
+ }
+
+ function log(text) {
+ console.log(text);
+ }
+})();
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/vertical-horizontal-list-markers.png b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/vertical-horizontal-list-markers.png
deleted file mode 100644
index ae8430fb46d..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/vertical-horizontal-list-markers.png
+++ /dev/null
Binary files differ
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100.svg b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100.svg
new file mode 100644
index 00000000000..0b91c8539d2
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100.svg
@@ -0,0 +1,2 @@
+<svg xmlns="http://www.w3.org/2000/svg" style="background: green" width="100">
+<g xmlns:html="http://www.w3.org/1999/xhtml" id="testmeta"><html:link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"/></g></svg> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100_h100.svg b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100_h100.svg
new file mode 100644
index 00000000000..f094372ec6a
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100_h100.svg
@@ -0,0 +1,2 @@
+<svg xmlns="http://www.w3.org/2000/svg" style="background: green" width="100" height="100">
+<g xmlns:html="http://www.w3.org/1999/xhtml" id="testmeta"><html:link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"/></g></svg> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100_r1-1.svg b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100_r1-1.svg
new file mode 100644
index 00000000000..5d44b4ffa01
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/support/w100_r1-1.svg
@@ -0,0 +1,2 @@
+<svg xmlns="http://www.w3.org/2000/svg" style="background: green" width="100" viewBox="0 0 100 100">
+<g xmlns:html="http://www.w3.org/1999/xhtml" id="testmeta"><html:link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/"/></g></svg> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-001-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-001-ref.xht
deleted file mode 100644
index e256f5fe620..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-001-ref.xht
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- font-size: 2em;
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: baseline;
- }
- img.line {
- margin-left: -230px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of glyph 'L' is touching a thin blue line in each 7 orange rectangles and</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-004-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-004-ref.xht
deleted file mode 100644
index 10dd7c839d0..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-004-ref.xht
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- font-size: 2em;
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: sub;
- }
- img.line {
- margin-left: -230px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of glyph 'L' is touching a thin blue line in each 7 orange rectangles and</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control"><sub>LLLLLLLLLLLLL</sub>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sub>LLLLLLLLLLLLL</sub>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sub>LLLLLLLLLLLLL</sub>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sub>LLLLLLLLLLLLL</sub>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sub>LLLLLLLLLLLLL</sub>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sub>LLLLLLLLLLLLL</sub>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sub>LLLLLLLLLLLLL</sub>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-007-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-007-ref.xht
deleted file mode 100644
index f77989c9088..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-007-ref.xht
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- font-size: 2em;
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: super;
- }
- img.line {
- margin-left: -230px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of glyph 'L' is touching a thin blue line in each 7 orange rectangles and</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control"><sup>LLLLLLLLLLLLL</sup>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sup>LLLLLLLLLLLLL</sup>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sup>LLLLLLLLLLLLL</sup>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sup>LLLLLLLLLLLLL</sup>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sup>LLLLLLLLLLLLL</sup>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sup>LLLLLLLLLLLLL</sup>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control"><sup>LLLLLLLLLLLLL</sup>
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-010-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-010-ref.xht
deleted file mode 100644
index f5e5c0d307a..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-010-ref.xht
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- font-size: 2em;
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: 0em;
- }
- img.line {
- margin-left: -230px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of glyph 'L' is touching a thin blue line in each 7 orange rectangles and</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-013-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-013-ref.xht
deleted file mode 100644
index 57e001c149f..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-013-ref.xht
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- font: 40px/1 "Ahem";
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: 0.8em;
- }
- img.line {
- margin-left: -260px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the top of black stripe is touching a thin blue line in each 7 orange rectangles.</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-016-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-016-ref.xht
deleted file mode 100644
index 5147f7f0f04..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-016-ref.xht
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- padding-bottom: 0.2em;
- font: 40px/1 "Ahem";
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: -0.2em;
- }
- img.line {
- margin-left: -260px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of black stripe is touching a thin blue line in each 7 orange rectangles.</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-019-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-019-ref.xht
deleted file mode 100644
index 07a86405805..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-019-ref.xht
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- font-size: 2em;
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: 0%;
- }
- img.line {
- margin-left: -230px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of glyph 'L' is touching a thin blue line in each 7 orange rectangles and</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">LLLLLLLLLL
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-022-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-022-ref.xht
deleted file mode 100644
index 5bfaf3b22d6..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-022-ref.xht
+++ /dev/null
@@ -1,59 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- font: 40px/1 "Ahem";
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: 80%;
- }
- img.line {
- margin-left: -260px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the top of black stripe is touching a thin blue line in each 7 orange rectangles.</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-025-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-025-ref.xht
deleted file mode 100644
index b95d3c610f3..00000000000
--- a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-025-ref.xht
+++ /dev/null
@@ -1,60 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title>CSS Reftest Reference</title>
- <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
- <style type="text/css"><![CDATA[
- p.control {
- padding-bottom: 0.2em;
- font: 40px/1 "Ahem";
- background-color: orange;
- }
-
- /* vertical-align */
- img {
- vertical-align: -20%;
- }
- img.line {
- margin-left: -260px;
- }
- ]]></style>
- </head>
- <body>
- <p>Test passes if ...</p>
- <ol>
- <li>the bottom of black stripe is touching a thin blue line in each 7 orange rectangles.</li>
- <li>the bottom edge of yellow square is aligned to a thin blue line in each 7 orange rectangles and</li>
- <li>all 7 orange rectangles are <strong>identical</strong>.</li>
- </ol>
-
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
- <p class="control">CONTR
- <img class="square" src="./support/yellow-square-59x59.png" alt="Image download support must be enabled" />
- <img class="line" src="./support/blue-horiz-line-220x1.png" alt="Image download support must be enabled" />
- </p>
-
- </body>
-</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-002-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-002-ref.xht
new file mode 100644
index 00000000000..78ee8eb6f5e
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-002-ref.xht
@@ -0,0 +1,32 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#orange
+ {
+ padding-top: 60px; /* = the height of first character */
+ padding-left: 60px; /* = the position of orange square */
+ }
+ ]]></style>
+
+</head>
+
+<body>
+
+<p>Test passes if the right edge of orange square attaches the left edge of blue square.</p>
+
+<div>
+ <img id="orange" src="support/swatch-orange.png" width="30" height="30" alt="Image download support must be enabled" /><!--
+--><img src="support/swatch-blue.png" width="30" height="90" alt="Image download support must be enabled" />
+</div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-004-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-004-ref.xht
new file mode 100644
index 00000000000..3be6ee9d836
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-004-ref.xht
@@ -0,0 +1,36 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img
+ {
+ padding-left: 15px; /* = the position of first orange square */
+ }
+
+ img + br + img
+ {
+ padding-left: 45px; /* = the position of second orange square*/
+ }
+ ]]></style>
+
+</head>
+
+<body>
+
+<p>Test passes if the <strong>right edge</strong> of an irregular orange polygon is straight and unbroken.</p>
+
+<div>
+ <img src="support/swatch-orange.png" width="60" height="60" alt="Image download support must be enabled" /><br /><!--
+--><img src="support/swatch-orange.png" width="30" height="30" alt="Image download support must be enabled" />
+</div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-006-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-006-ref.xht
new file mode 100644
index 00000000000..29e6b7e66f4
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-006-ref.xht
@@ -0,0 +1,36 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img
+ {
+ padding-left: 15px; /* = the position of first orange square */
+ }
+
+ img + br + img
+ {
+ padding-left: 15px; /* = the position of second orange square*/
+ }
+ ]]></style>
+
+</head>
+
+<body>
+
+<p>Test passes if the <strong>left edge</strong> of an irregular orange polygon is straight and unbroken.</p>
+
+<div>
+ <img src="support/swatch-orange.png" width="60" height="60" alt="Image download support must be enabled" /><br /><!--
+--><img src="support/swatch-orange.png" width="30" height="30" alt="Image download support must be enabled" />
+</div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-008-ref.xht b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-008-ref.xht
new file mode 100644
index 00000000000..beb9002d169
--- /dev/null
+++ b/tests/wpt/css-tests/css21_dev/xhtml1/reference/vertical-alignment-new-008-ref.xht
@@ -0,0 +1,31 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>CSS Reftest Reference</title>
+ <link rel="author" title="Hajime Shiozawa" href="mailto:hajime.shiozawa@gmail.com" />
+ <meta name="flags" content="image" />
+ <style type="text/css"><![CDATA[
+ img
+ {
+ vertical-align: top;
+ }
+
+ img#orange
+ {
+ padding-top: 60px; /* = the height of first character */
+ }
+ ]]></style>
+
+</head>
+
+<body>
+
+<p>Test passes if the left edge of orange square attaches the right edge of blue square.</p>
+
+<div>
+ <img src="support/swatch-blue.png" width="30" height="90" alt="Image download support must be enabled" /><!--
+--><img id="orange" src="support/swatch-orange.png" width="30" height="30" alt="Image download support must be enabled" />
+</div>
+
+</body>
+</html> \ No newline at end of file