Truly independent web browser
Tests/LibWeb: Import WPT tests for vertical writing modes
Andreas Klinga474342d30e0
diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xhtnew file mode 100644index 00000000000..e5a70861567--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-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>++ <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 filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xhtnew file mode 100644index 00000000000..1b0afddb3eb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-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>++ <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 filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xhtnew file mode 100644index 00000000000..2937fb22bda--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-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>++ <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 filediff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xhtnew file mode 100644index 00000000000..fa3314752a9--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/block-flow-direction-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>+ <title>CSS Reftest Reference</title>+ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2014-12-30 and 2016-11-14 -->++ <meta name="flags" content="ahem" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ background-color: blue;+ color: yellow;+ font: 20px/1 Ahem;+ padding: 1em;+ width: 19em;+ }+ ]]></style>+ </head>+ <body>++ <div>P1ro A1ro S1ro S1ro P P A A S S P P A A S S P4ro A4ro S4ro S4ro P A A S S P A A S S P A A S7ro S7ro</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-011-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-011-ref.htmlnew file mode 100644index 00000000000..ef66b4e0d62--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/available-size-011-ref.html@@ -0,0 +1,14 @@+<!doctype html>+<title>CSS writing mode test reference</title>+<meta charset=utf-8>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<style>+div {+ line-height: 1em;+ height: 1em;+ writing-mode: vertical-rl;+}+</style>++<p>This test passes if the word “PASS” (without the quotation marks) appears below, written horizontally from left to right.+<div>S S A P</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/text-orientation-020-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/text-orientation-020-ref.htmlnew file mode 100644index 00000000000..c5f83ef92a3--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/text-orientation-020-ref.html@@ -0,0 +1,28 @@+<!DOCTYPE html>+<html lang=en>+<meta charset="utf-8">+<title>CSS test reference</title>+<style>+.ref ol {+ text-orientation: upright;+}+.ref span {+ text-orientation: mixed;+}+figure {+ writing-mode: vertical-rl;+ border: solid 1px black;+ padding: 1em 0 1ch;+ margin: 0 1ch;+ float: left;+}+</style>++<p>Test passes if the two boxes below are identical.++<figure class=ref>+ <ol><li><span>hello世界</span></ol>+</figure>+<figure class=ref>+ <ol><li><span>hello世界</span></ol>+</figure>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/text-orientation-021-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/text-orientation-021-ref.htmlnew file mode 100644index 00000000000..3ff53e3da4a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/reference/text-orientation-021-ref.html@@ -0,0 +1,22 @@+<!DOCTYPE html>+<html lang=en>+<meta charset="utf-8">+<title>CSS test reference</title>+<style>+body > div {+ border: solid 1px black;+ padding: 10px;+ margin: 10px;+ float: left;+}+</style>++<p>Test passes if the two boxes below are identical.++<div style="writing-mode: vertical-rl; text-orientation: upright">+ AB+</div>++<div style="writing-mode: vertical-rl; text-orientation: upright">+ AB+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-010-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-010-ref.xhtnew file mode 100644index 00000000000..e72c778a3eb--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-010-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>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ float: left;+ margin-left: 92px;+ width: 394px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-016-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-016-ref.xhtnew file mode 100644index 00000000000..4ae074ca656--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-016-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>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ div+ {+ border: blue solid 35px;+ box-sizing: border-box;+ width: 100vw;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-022-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-022-ref.xhtnew file mode 100644index 00000000000..cdacb7c9b1b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-022-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>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-30T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin: 8px 0px;+ }++ div+ {+ border: blue solid 3px;+ float: left;+ width: 394px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-004-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-004-ref.xhtnew file mode 100644index 00000000000..5875ac2470a--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-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>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-27T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ }++ div+ {+ border: blue solid 3px;+ margin: 0px 92px;+ width: 200px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-006-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-006-ref.xhtnew file mode 100644index 00000000000..089fff04cc9--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-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>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ }++ div+ {+ border: blue solid 3px;+ width: 50vw;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-008-ref.xht b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-008-ref.xhtnew file mode 100644index 00000000000..f45630852f0--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-008-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>++ <title>CSS Reftest Reference</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />++ <meta name="DC.date.created" content="2016-12-28T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2016-12-29T09:54:03+11:00" scheme="W3CDTF" />+++ <style type="text/css"><![CDATA[+ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ }++ div+ {+ border: blue solid 3px;+ width: 200px;+ }+ ]]></style>+ </head>++ <body>++ <div>01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/block-flow-direction-025-exp-res.png b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/block-flow-direction-025-exp-res.pngnew file mode 100644index 00000000000..851eeea0398Binary files /dev/null and b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/block-flow-direction-025-exp-res.png differdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/block-flow-direction-066-exp-res.png b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/block-flow-direction-066-exp-res.pngnew file mode 100644index 00000000000..d325b15a4cfBinary files /dev/null and b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/block-flow-direction-066-exp-res.png differdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/pass-cdts-abs-pos-non-replaced.png b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/pass-cdts-abs-pos-non-replaced.pngnew file mode 100644index 00000000000..15fd6065ef6Binary files /dev/null and b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/pass-cdts-abs-pos-non-replaced.png differdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/swatch-blue.png b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/swatch-blue.pngnew file mode 100644index 00000000000..bf2759634d4Binary files /dev/null and b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/swatch-blue.png differdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/swatch-green.png b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/swatch-green.pngnew file mode 100644index 00000000000..0aa79b0c86bBinary files /dev/null and b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/support/swatch-green.png differdiff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-initial-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-initial-ref.htmlnew file mode 100644index 00000000000..322dde323ea--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-initial-ref.html@@ -0,0 +1,7 @@+<!DOCTYPE html>+<div style="writing-mode:vertical-rl">+ <div>+ vertical+ </div>+</div>+diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-mixed-vlr-100-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-mixed-vlr-100-ref.htmlnew file mode 100644index 00000000000..48d2c7e4f1b--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-mixed-vlr-100-ref.html@@ -0,0 +1,49 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-lr; text-orientation: mixed.</title>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-lr;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: mixed;+ text-autospace: no-autospace;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">国国国国国国国国国国国国A国国国国国国国国国国国国国国AAA国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-mixed-vrl-100-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-mixed-vrl-100-ref.htmlnew file mode 100644index 00000000000..26c01d15f46--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-mixed-vrl-100-ref.html@@ -0,0 +1,49 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-rl; text-orientation: mixed.</title>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-rl;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: mixed;+ text-autospace: no-autospace;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">国国国国国国国国国国国国A国国国国国国国国国国国国国国AAA国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-sideways-vlr-100-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-sideways-vlr-100-ref.htmlnew file mode 100644index 00000000000..bf5910b22ec--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-sideways-vlr-100-ref.html@@ -0,0 +1,48 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-lr; text-orientation: sideways.</title>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-lr;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: sideways;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-sideways-vrl-100-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-sideways-vrl-100-ref.htmlnew file mode 100644index 00000000000..dcedb0ae093--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-sideways-vrl-100-ref.html@@ -0,0 +1,48 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-rl; text-orientation: sideways.</title>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-rl;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: sideways;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+<div class="line">AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-directionality-001-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-directionality-001-ref.htmlnew file mode 100644index 00000000000..5e7c1e2f7a0--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-directionality-001-ref.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>CSS Reference: text-orientation:upright in sideways-* writing modes</title>+<link rel="author" title="Jonathan Kew" href="mailto:[email protected]">+</head>+<body style="font: 24px sans-serif">+<p>The two sideways-rl lines should be identical:+<div style="writing-mode:sideways-rl">+ <p>hello العربي world עברית</p>+ <p>hello العربي world עברית</p>+</div>+<p>The two sideways-lr lines should be identical:+<div style="writing-mode:sideways-lr">+ <p>hello العربي world עברית</p>+ <p>hello العربي world עברית</p>+</div>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-vlr-100-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-vlr-100-ref.htmlnew file mode 100644index 00000000000..359b8cddd69--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-vlr-100-ref.html@@ -0,0 +1,48 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-lr; text-orientation: upright.</title>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-lr;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: upright;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-vrl-100-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-vrl-100-ref.htmlnew file mode 100644index 00000000000..7d944f68f48--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/css-writing-modes/text-orientation-upright-vrl-100-ref.html@@ -0,0 +1,48 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-rl; text-orientation: upright.</title>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-rl;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: upright;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+<div class="line">国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国国</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/css/cssom-view/cssom-getBoundingClientRect-vertical-rl-ref.html b/Tests/LibWeb/Ref/expected/wpt-import/css/cssom-view/cssom-getBoundingClientRect-vertical-rl-ref.htmlnew file mode 100644index 00000000000..0b68c4f210c--- /dev/null+++ b/Tests/LibWeb/Ref/expected/wpt-import/css/cssom-view/cssom-getBoundingClientRect-vertical-rl-ref.html@@ -0,0 +1,4 @@+<!DOCTYPE html>+<body style="overflow: hidden">+ <div style="position: absolute; top: 50px; left: 50px; width: 200px; height: 200px; background: green"></div>+</body>diff --git a/Tests/LibWeb/Ref/expected/wpt-import/fonts/adobe-fonts/CSSHWOrientationTest.otf b/Tests/LibWeb/Ref/expected/wpt-import/fonts/adobe-fonts/CSSHWOrientationTest.otfnew file mode 100644index 00000000000..84ad57bef5aBinary files /dev/null and b/Tests/LibWeb/Ref/expected/wpt-import/fonts/adobe-fonts/CSSHWOrientationTest.otf differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-005.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-005.xhtnew file mode 100644index 00000000000..a16e6b71fbc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-005.xht@@ -0,0 +1,108 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto', then set 'left' to the static position, the width becomes shrink-to-fit and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: vertical-lr;+ }++/*+"+If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.++3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 160px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-017.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-017.xhtnew file mode 100644index 00000000000..1d7d25703e3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-017.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 2em;+ width: auto;+ writing-mode: vertical-lr;+ }++/*+"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++gives us:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++And so computed left value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-023.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-023.xhtnew file mode 100644index 00000000000..a68d3a44075--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-023.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 2em;+ width: auto;+ writing-mode: vertical-lr;+ }++/*+"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++gives us:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++And so computed left value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-029.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-029.xhtnew file mode 100644index 00000000000..ab6c6019dd1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-029.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto', then set 'left' to the static position and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 160px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-041.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-041.xhtnew file mode 100644index 00000000000..48d046f4e1c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-041.xht@@ -0,0 +1,107 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: vertical-lr;+ }++/*++"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-047.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-047.xhtnew file mode 100644index 00000000000..3afce5dcbaa--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-047.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: vertical-lr;+ }++/*+"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-053.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-053.xhtnew file mode 100644index 00000000000..591d4b52d79--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-053.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 80px : right+ =====================+ 320px : width of containing block++And so computed left value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-059.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-059.xhtnew file mode 100644index 00000000000..aa9532c7d6a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-059.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+4.'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 80px : right+ =====================+ 320px : width of containing block++And so computed left value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-065.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-065.xhtnew file mode 100644index 00000000000..c78473bdac0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-065.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto', 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 2em;+ position: absolute;+ right: 1em;+ width: auto;+ writing-mode: vertical-lr;+ }++/*+"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (solve) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 80px : right: auto+ =====================+ 320px : width of containing block++And so computed width value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-071.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-071.xhtnew file mode 100644index 00000000000..4dccecc8313--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-071.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 2em;+ position: absolute;+ right: 1em;+ width: auto;+ writing-mode: vertical-lr;+ }++/*+"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (solve) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 80px : right+ =====================+ 320px : width of containing block++And so computed width value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-077.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-077.xhtnew file mode 100644index 00000000000..96b04e3b227--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-077.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-083.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-083.xhtnew file mode 100644index 00000000000..9d121fe5c52--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-083.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-089.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-089.xhtnew file mode 100644index 00000000000..ed51611b237--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-089.xht@@ -0,0 +1,108 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are not 'auto' (overconstrained), then ignore 'right' and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 2em;+ margin-left: 0em;+ margin-right: 0em;+ position: absolute;+ right: 2em;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. 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.+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left+ ++ 0px : margin-left+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++gives us:++ 160px : left+ ++ 0px : margin-left+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-105.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-105.xhtnew file mode 100644index 00000000000..7ee8f8ab144--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-105.xht@@ -0,0 +1,108 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height', and 'bottom' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, the height is based on content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ writing-mode: vertical-lr;+ }++/*+"+If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.++3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (shrink-to-fit) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 80px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (shrink-to-fit) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-121.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-121.xhtnew file mode 100644index 00000000000..7e3b9dfc6b2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-121.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on content and then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 1em;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ writing-mode: vertical-lr;+ }++/*+"+1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom: auto+ =====================+ 320px : height of containing block++And so computed top value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-137.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-137.xhtnew file mode 100644index 00000000000..5356eca30e1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-137.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: auto;+ height: 1em;+ position: absolute;+ top: auto;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-153.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-153.xhtnew file mode 100644index 00000000000..774da78fe73--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-153.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: 1em;+ writing-mode: vertical-lr;+ }++/*+"+3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-169.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-169.xhtnew file mode 100644index 00000000000..5b788955f4a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-169.xht@@ -0,0 +1,85 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto', 'height' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto', 'height' and 'bottom' are not 'auto', then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+4. 'top' is 'auto', 'height' and 'bottom' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-185.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-185.xhtnew file mode 100644index 00000000000..a24a23abe92--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-185.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto', 'top' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto', 'top' and 'bottom' are not 'auto', then solve for 'height'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ height: auto;+ position: absolute;+ top: 2em;+ width: 1em;+ writing-mode: vertical-lr;+ }++/*+"+5. 'height' is 'auto', 'top' and 'bottom' are not 'auto', then 'auto' values for 'margin-top' and 'margin-bottom' are set to 0 and solve for 'height'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (solve) : height : auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed height value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-201.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-201.xhtnew file mode 100644index 00000000000..5e50b40616f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-201.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto', 'top' and 'height' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto', 'top' and 'height' are not 'auto', then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ position: absolute;+ top: 1em;+ height: 1em;+ writing-mode: vertical-lr;+ }++/*+"+6. 'bottom' is 'auto', 'top' and 'height' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0 and solve for 'bottom'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-217.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-217.xhtnew file mode 100644index 00000000000..9f7afca35bf--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-217.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'bottom' and 'height' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'bottom' and 'height' are not 'auto' and if the values are over-constrained, then ignore the value for 'bottom' and solve for that value." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: 1em;+ position: absolute;+ top: 2em;+ writing-mode: vertical-lr;+ }++/*+"+If none of the three are 'auto': If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values. If one of 'margin-top' or 'margin-bottom' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'bottom' and solve for that value.+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004.xhtnew file mode 100644index 00000000000..79f5ef5933a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004.xht@@ -0,0 +1,108 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are 'auto', then set 'left' to the static position, the width becomes shrink-to-fit and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: vertical-rl;+ }++/*+"+If all three of 'left', 'width', and 'right' are 'auto': First set any 'auto' values for 'margin-left' and 'margin-right' to 0. Then, if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position and apply rule number three below; otherwise, set 'right' to the static position and apply rule number one below.++3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 160px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-016.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-016.xhtnew file mode 100644index 00000000000..80883ad7b3b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-016.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 2em;+ width: auto;+ writing-mode: vertical-rl;+ }++/*+"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++gives us:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++And so computed left value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-020.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-020.xhtnew file mode 100644index 00000000000..44c1d3eab6b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-020.xht@@ -0,0 +1,114 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' and 'height' are 'auto and 'bottom' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content and then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-022.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-022.xhtnew file mode 100644index 00000000000..cbdd9470ca4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-022.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width becomes shrink-to-fit and then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 2em;+ width: auto;+ writing-mode: vertical-rl;+ }++/*+"+1. 'left' and 'width' are 'auto' and 'right' is not 'auto', then the width is shrink-to-fit. Then solve for 'left'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++gives us:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++And so computed left value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-028.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-028.xhtnew file mode 100644index 00000000000..b3d800c8d21--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-028.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' and 'right' are 'auto' and 'width' is not 'auto', then set 'left' to the static position and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+2. 'left' and 'right' are 'auto' and 'width' is not 'auto', then if the 'direction' property of the element establishing the static-position containing block is 'ltr' set 'left' to the static position, otherwise set 'right' to the static position. Then solve for 'left' (if 'direction is 'rtl') or 'right' (if 'direction' is 'ltr').+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 160px : left: auto: set to static position+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-040.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-040.xhtnew file mode 100644index 00000000000..7455205ae5e--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-040.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: vertical-rl;+ }++/*+"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-044.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-044.xhtnew file mode 100644index 00000000000..25daf57757d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-044.xht@@ -0,0 +1,114 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'top', 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on the content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-046.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-046.xhtnew file mode 100644index 00000000000..21c4fe9c28a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-046.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width becomes shrink-to-fit and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: auto;+ writing-mode: vertical-rl;+ }++/*+"+3. 'width' and 'right' are 'auto' and 'left' is not 'auto', then the width is shrink-to-fit . Then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++gives us:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : (shrink-to-fit) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-052.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-052.xhtnew file mode 100644index 00000000000..cc64c477afe--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-052.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 80px : right+ =====================+ 320px : width of containing block++And so computed left value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-056.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-056.xhtnew file mode 100644index 00000000000..28bd118bc3b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-056.xht@@ -0,0 +1,92 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'top' is 'auto' and 'height' and 'bottom' are not 'auto', then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 1em;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+4. 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-058.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-058.xhtnew file mode 100644index 00000000000..0b8a12336a7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-058.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: auto;+ position: absolute;+ right: 1em;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+4.'left' is 'auto', 'width' and 'right' are not 'auto', then solve for 'left'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ (solve) : left: auto+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 80px : right+ =====================+ 320px : width of containing block++And so computed left value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-064.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-064.xhtnew file mode 100644index 00000000000..124a4d90fcc--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-064.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'width' is 'auto', 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 2em;+ position: absolute;+ right: 1em;+ width: auto;+ writing-mode: vertical-rl;+ }++/*+"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (solve) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 80px : right+ =====================+ 320px : width of containing block++And so computed width value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-068.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-068.xhtnew file mode 100644index 00000000000..50712c918a6--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-068.xht@@ -0,0 +1,92 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'height' is 'auto' and 'top' and 'bottom' are not 'auto', then solve for 'height'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ height: auto;+ position: absolute;+ top: 2em;+ width: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (solve) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed height value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-070.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-070.xhtnew file mode 100644index 00000000000..c4a7166f958--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-070.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ height: 1em;+ left: 2em;+ position: absolute;+ right: 1em;+ width: auto;+ writing-mode: vertical-rl;+ }++/*+"+5. 'width' is 'auto', 'left' and 'right' are not 'auto', then solve for 'width'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ (solve) : width: auto+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 80px : right+ =====================+ 320px : width of containing block++And so computed width value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-076.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-076.xhtnew file mode 100644index 00000000000..22676ed64f4--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-076.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-080.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-080.xhtnew file mode 100644index 00000000000..789d26d7433--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-080.xht@@ -0,0 +1,92 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'bottom' is 'auto' and 'top' and 'height' are not 'auto', then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ writing-mode: vertical-rl;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: 1em;+ position: absolute;+ top: 1em;+ }++/*+"+Layout calculation rules (such as those in CSS2.1, Section 10.3) that apply to the horizontal dimension in horizontal writing modes instead apply to the vertical dimension in vertical writing modes.+"+7.1 Principles of Layout in Vertical Writing Modes+http://www.w3.org/TR/css-writing-modes-3/#vertical-layout++So here, *-top and *-bottom properties are input into the §10.3.7 algorithms where *-top properties refer to *-left properties in the layout rules and where *-bottom properties refer to *-right properties in the layout rules.++"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-082.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-082.xhtnew file mode 100644index 00000000000..b422d4f3c35--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-082.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vlr-009-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'rtl' and 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-2col-2row-320x320.png");+ color: transparent;+ direction: rtl;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 1em;+ position: absolute;+ right: auto;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+6. 'right' is 'auto', 'left' and 'width' are not 'auto', then solve for 'right'+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 80px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right: auto+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-088.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-088.xhtnew file mode 100644index 00000000000..f3676c5e37d--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-088.xht@@ -0,0 +1,108 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'left', 'width' and 'right' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width" title="10.3.7 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'left', 'width' and 'right' are not 'auto' (overconstrained), then ignore 'right' and then solve for 'right'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ color: green;+ left: 2em;+ margin-left: 0em;+ margin-right: 0em;+ position: absolute;+ right: 2em;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+If none of the three is 'auto': If both 'margin-left' and 'margin-right' are 'auto', solve the equation under the extra constraint that the two margins get equal values, unless this would make them negative, in which case when direction of the containing block is 'ltr' ('rtl'), set 'margin-left' ('margin-right') to zero and solve for 'margin-right' ('margin-left'). If one of 'margin-left' or 'margin-right' is 'auto', solve the equation for that value. 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.+"++'left' + 'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' + 'right' = width of containing block++So:++ 160px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ 160px : right+ =====================+ 320px : width of containing block++gives us:++ 160px : left+ ++ 0px : margin-left+ ++ 0px : border-left-width+ ++ 0px : padding-left+ ++ 80px : width+ ++ 0px : padding-right+ ++ 0px : border-right-width+ ++ 0px : margin-right+ ++ (solve) : right+ =====================+ 320px : width of containing block++And so computed right value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-104.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-104.xhtnew file mode 100644index 00000000000..afc97d8dc84--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-104.xht@@ -0,0 +1,108 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'height', and 'bottom' are 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'height' and 'bottom' are 'auto', then set 'top' to the static position, the height is based on content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ writing-mode: vertical-rl;+ }++/*+"+If all three of 'top', 'height', and 'bottom' are auto, set 'top' to the static position and apply rule number three below.++3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (shrink-to-fit) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ 80px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (shrink-to-fit) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-120.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-120.xhtnew file mode 100644index 00000000000..388a6fd9f7b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-120.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on content and then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 1em;+ color: green;+ height: auto;+ position: absolute;+ top: auto;+ writing-mode: vertical-rl;+ }++/*+"+1. 'top' and 'height' are 'auto' and 'bottom' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (based on content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom: auto+ =====================+ 320px : height of containing block++gives us:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom: auto+ =====================+ 320px : height of containing block++And so computed top value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-136.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-136.xhtnew file mode 100644index 00000000000..96bb562d582--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-136.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: auto;+ height: 1em;+ position: absolute;+ top: auto;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+2. 'top' and 'bottom' are 'auto' and 'height' is not 'auto', then set 'top' to the static position, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top: auto: set to static position+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-152.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-152.xhtnew file mode 100644index 00000000000..5f6519214e2--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-152.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on content and then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ height: auto;+ position: absolute;+ top: 1em;+ writing-mode: vertical-rl;+ }++/*+"+3. 'height' and 'bottom' are 'auto' and 'top' is not 'auto', then the height is based on the content per 10.6.7, set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'bottom'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : (based on content) : height: auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-168.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-168.xhtnew file mode 100644index 00000000000..c4487fc9a21--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-168.xht@@ -0,0 +1,85 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top' is 'auto', 'height' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top' is 'auto', 'height' and 'bottom' are not 'auto', then solve for 'top'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ color: green;+ height: 1em;+ position: absolute;+ top: auto;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+4. 'top' is 'auto', 'height' and 'bottom' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0, and solve for 'top'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ (solve) : top: auto+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed top value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-184.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-184.xhtnew file mode 100644index 00000000000..53e6a93ff55--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-184.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'height' is 'auto', 'top' and 'bottom' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'height' is 'auto', 'top' and 'bottom' are not 'auto', then solve for 'height'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: green;+ bottom: 1em;+ height: auto;+ position: absolute;+ top: 2em;+ width: 1em;+ writing-mode: vertical-rl;+ }++/*+"+5. 'height' is 'auto', 'top' and 'bottom' are not 'auto', then 'auto' values for 'margin-top' and 'margin-bottom' are set to 0 and solve for 'height'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ (solve) : height : auto+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 80px : bottom+ =====================+ 320px : height of containing block++And so computed height value must be 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 id="containing-block">1 2 34<span></span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-200.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-200.xhtnew file mode 100644index 00000000000..3b4aabe6ee0--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-200.xht@@ -0,0 +1,84 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'bottom' is 'auto', 'top' and 'height' are not 'auto'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-004-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'bottom' is 'auto', 'top' and 'height' are not 'auto', then solve for 'bottom'." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-2row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: auto;+ color: green;+ position: absolute;+ top: 1em;+ height: 1em;+ writing-mode: vertical-rl;+ }++/*+"+6. 'bottom' is 'auto', 'top' and 'height' are not 'auto', then set 'auto' values for 'margin-top' and 'margin-bottom' to 0 and solve for 'bottom'+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 80px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom: auto+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-216.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-216.xhtnew file mode 100644index 00000000000..1e87424711b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-216.xht@@ -0,0 +1,106 @@+<!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 Writing Modes Test: absolutely positioned non-replaced element - 'direction: ltr' and 'top', 'bottom' and 'height' are not 'auto' (overconstrained)</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />+ <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-height" title="10.6.4 Absolutely positioned, non-replaced elements" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/abs-pos-non-replaced-vrl-002-ref.xht" />++ <meta name="flags" content="ahem image" />+ <meta name="assert" content="When 'direction' is 'ltr' and 'top', 'bottom' and 'height' are not 'auto' and if the values are over-constrained, then ignore the value for 'bottom' and solve for that value." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div#containing-block+ {+ background: red url("support/bg-red-3col-3row-320x320.png");+ color: transparent;+ direction: ltr;+ font: 80px/1 Ahem;+ height: 320px;+ position: relative;+ width: 320px;+ }++ div#containing-block > span+ {+ background-color: red;+ bottom: 2em;+ color: green;+ height: 1em;+ position: absolute;+ top: 2em;+ writing-mode: vertical-rl;+ }++/*+"+If none of the three are 'auto': If both 'margin-top' and 'margin-bottom' are 'auto', solve the equation under the extra constraint that the two margins get equal values. If one of 'margin-top' or 'margin-bottom' is 'auto', solve the equation for that value. If the values are over-constrained, ignore the value for 'bottom' and solve for that value.+"++'top' + 'margin-top' + 'border-top-width' + 'padding-top' + 'height' + 'padding-bottom' + 'border-bottom-width' + 'margin-bottom' + 'bottom' = height of containing block++So:++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ 160px : bottom+ =====================+ 320px : height of containing block++gives us++ 160px : top+ ++ 0px : margin-top+ ++ 0px : border-top-width+ ++ 0px : padding-top+ ++ 80px : height+ ++ 0px : padding-bottom+ ++ 0px : border-bottom-width+ ++ 0px : margin-bottom+ ++ (solve) : bottom+ =====================+ 320px : height of containing block++And so computed bottom value must be 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 id="containing-block">1 2 34<span>X</span></div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-011.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-011.htmlnew file mode 100644index 00000000000..868b70c0905--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/available-size-011.html@@ -0,0 +1,19 @@+<!doctype html>+<title>orthogonal flow parent with max-height</title>+<meta charset=utf-8>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto">+<meta name="assert" content="If an orthogonal flow's parent doesn't have a definite block size but does have a max block size, use that as the available size">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/reference/available-size-011-ref.html">+<style>+main {+ max-height: 1em;+ line-height: 1em;+}+div {+ writing-mode: vertical-rl;+}+</style>++<p>This test passes if the word “PASS” (without the quotation marks) appears below, written horizontally from left to right.+<main><div>S S A P</div></main>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-004.xhtnew file mode 100644index 00000000000..aefbf1b2bf9--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-004.xht@@ -0,0 +1,55 @@+<!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 Writing Modes Test: 'writing-mode' - initial value is 'horizontal-tb'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that the default, initial value of writing-mode is 'horizontal-tb'." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ width: 21em;+ }++ div+ {+ background-color: blue;+ border-left: blue solid 1em;+ border-right: blue solid 1em;+ }++ div#top-border { border-top: blue solid 1em; }++ div#bottom-border { border-bottom: blue solid 1em; }+ ]]></style>+ </head>++ <body>++ <!-- topmost line --><div id="top-border">AAAA BBBB CCCC DDDD</div>++ <!-- 2nd topmost line --><div>E F G H J L </div>++ <!-- 3rd topmost line --><div>M N Q R S T </div>++ <!-- 4th topmost line --><div>UUUU VVVV WWWW XXXX</div>++ <!-- 5th topmost line --><div>Z a b c d</div>++ <!-- 6th topmost line --><div>e f g h j</div>++ <!-- 7th topmost line --><div id="bottom-border">k m n qqqq rrrr</div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-htb-001.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-htb-001.xhtnew file mode 100644index 00000000000..9dba432c529--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/block-flow-direction-htb-001.xht@@ -0,0 +1,72 @@+<!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 Writing Modes Test: horizontal-tb - block flow direction of block-level boxes</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#block-flow" title="3.1 Block Flow Direction: the writing-mode property" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/block-flow-direction-001-ref.xht" />++ <meta content="ahem" name="flags" />+ <meta content="This test checks that block-level boxes in a 'horizontal-tb' writing mode are laid out one after the other, vertically, with the first beginning at the top of a containing block; they are ordered from top to bottom meaning that the 1st block box is the topmost one, then the 2nd block is juxtaposed at its bottom, then the 3rd block is juxtaposed to the 2nd block at its bottom, etc..." name="assert" />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: horizontal-tb;+ }+ /*+ "+ The principal writing mode of the document is determined by the writing-mode+ and direction values specified on the root element.+ "+ */++ body+ {+ color: yellow;+ font: 20px/1 Ahem;+ width: 21em;+ }++ div+ {+ background-color: blue;+ border-left: blue solid 1em;+ border-right: blue solid 1em;+ }++ div#top-border+ {+ border-top: blue solid 1em;+ }++ div#bottom-border+ {+ border-bottom: blue solid 1em;+ }+ ]]></style>+ </head>++ <body>++ <!-- topmost line --><div id="top-border">AAAA BBBB CCCC DDDD</div>++ <!-- 2nd topmost line --><div>E F G H J L </div>++ <!-- 3rd topmost line --><div>M N Q R S T </div>++ <!-- 4th topmost line --><div>UUUU VVVV WWWW XXXX</div>++ <!-- 5th topmost line --><div>Z a b c d</div>++ <!-- 6th topmost line --><div>e f g h j</div>++ <!-- 7th topmost line --><div id="bottom-border">k m n qqqq rrrr</div>++ </body>+</html>\ No newline at end of filediff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-017.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-017.xhtnew file mode 100644index 00000000000..d95eaf6a409--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vlr-017.xht@@ -0,0 +1,69 @@+<!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 Writing Modes Test: 'vertical-lr' and margin collapsing - elements with 'overflow' set to 'hidden'</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted and modified from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-009.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that elements with 'overflow' set to 'hidden' do not collapse margin with in-flow children in 'vertical-lr' writing-mode. In this test, we are testing and checking that 'margin-left' of div#overflow does not collapse with 'margin-left' of div#nested." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background-color: green;+ width: 8em;+ writing-mode: vertical-lr;+ }++ div#overflow+ {+ background-color: white;+ margin-left: 4em; /* block-start margin of overflowed block */+ overflow: hidden;+ width: 4em;+ }++ div#nested+ {+ background-color: red;+ margin-left: 4em; /* block-start margin of sub-block */+ width: 4em;+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="overflow">+ <div id="nested"></div>+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-034.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-034.xhtnew file mode 100644index 00000000000..e2aea0fe14b--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/margin-collapse-vrl-034.xht@@ -0,0 +1,67 @@+<!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 Writing Modes Test: 'vertical-rl' and margin collapsing - right margin of a block collapses with right margin of its first child</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/../reference/ref-filled-green-100px-square.xht" />++ <!--+ Test adapted from+ http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-017.htm++ "+ The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.+ "+ -->++ <meta content="ahem image" name="flags" />+ <meta name="assert" content="This test checks that, in a vertical-rl context, the right margin an in-flow block box collapses with its first in-flow block-level child's right margin if the element has no top border, no top padding, and the child has no clearance." />++ <link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+ <style type="text/css"><![CDATA[+ div+ {+ font: 25px/1em Ahem;+ height: 4em;+ }++ div#wrapper+ {+ background: red url("support/margin-collapse-2em-space-wm-vert.png");+ border-right: green solid 1em;+ width: 3em;+ writing-mode: vertical-rl;+ }++ div#parent+ {+ margin-right: 2em; /* block-start margin */+ }++ div#first-child+ {+ background-color: green;+ margin-right: 2em; /* block-start margin of child */+ width: 1em;+ }+ ]]></style>++ </head>++ <body>++ <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>++ <div id="wrapper">+ <div id="parent">+ <div id="first-child"></div>+ </div>+ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-010.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-010.xhtnew file mode 100644index 00000000000..d32a906953c--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-010.xht@@ -0,0 +1,99 @@+<!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 Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-010-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is definite in this test, then constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-016.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-016.xhtnew file mode 100644index 00000000000..46748e62a29--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-016.xht@@ -0,0 +1,103 @@+<!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 Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-016-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport." />++ <!--++ shrink-to-fit formula is: min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 35px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-022.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-022.xhtnew file mode 100644index 00000000000..149b390e8ba--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-022.xht@@ -0,0 +1,99 @@+<!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 Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-022-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is '400px'. Since the width of the containing block is definite in this test, then the constrain is the width of such containing block which is, in this test, 400px. This test presumes that the initial containing block's width is greater than 400px." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vlr tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' its max-content inline-size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-016.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-016.xhtnew file mode 100644index 00000000000..7b97987bdff--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vrl-016.xht@@ -0,0 +1,103 @@+<!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 Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with 'auto' inline size inside auto-sized 'vertical-rl' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-htb-in-vlr-016-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is 'auto' and its containing block's block size is also 'auto'. Since the width of the containing block is indefinite in this test, then constrain is the width of initial containing block which is, in this test, equal to the width of the viewport." />++ <!--++ shrink-to-fit formula min(max-content, max(min-content, constraint))++ max-content inline size: narrowest inline size needed to fit its contents+ if none of the soft wrap opportunities within the box were taken. Eg:+ max-content of "I am a text sentence." is "I am a text sentence."+ https://www.w3.org/TR/css-sizing-3/#max-content-inline-size++ min-content inline size of the box: longest word in a sentence or longest non-breakable+ inline box (inline replaced or inline-block). Eg: min-content of "I am a text sentence."+ is "sentence."+ https://www.w3.org/TR/css-sizing-3/#min-content-inline-size++ contraint: min(available space, initial containing block's size)++ available space: this is either a measurement of its containing block+ (if that is definite) or an infinite size (when it is indefinite).+ https://drafts.csswg.org/css-sizing-4/#available++ - - - - - - - - - - - - -++ Inside this batch of 24 sizing-orthog-htb-in-vrl tests:+ 001-012 : body has 100px margin-left and 100px margin-right+ 013-024 : body has no horizontal margins++ Inside each sub-batch of 12 tests:+ 001-006: containing block's width is 'auto' therefore indefinite+ 007-012: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 6 tests:+ 001-003: containing block has 1 sentence before and after+ 004-006: containing block has no sentence before and no sentence after++ Inside each sub-sub-sub-batch of 3 tests:+ 001: orthogonal block's width is 'auto'+ 002: orthogonal block's width is 'auto' and its min-content+ inline size (1 very long word) is wider than constraint+ 003: orthogonal block's width is 'auto' and its max-content inline size+ is narrower than max(min-content, constraint)++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-rl;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vrl-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 35px;+ width: auto;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vrl-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-004.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-004.xhtnew file mode 100644index 00000000000..f03278d829f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-004.xht@@ -0,0 +1,74 @@+<!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 Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-004-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the width of the containing block is definite, therefore 50% is applied on the width of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vlr tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 100px;+ margin-right: 100px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-006.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-006.xhtnew file mode 100644index 00000000000..50f50657940--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-006.xht@@ -0,0 +1,78 @@+<!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 Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside auto-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-006-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the inline size of the orthogonal block is '50%' and its containing block's block size is 'auto'. Since the width of the containing block is indefinite in this test, then the initial containing block's size is used as a fallback which is, in this test, equal to the width of the viewport." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vlr tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#auto-sized-vlr-containing-block+ {+ width: auto;+ /*+ 'width: auto' causes the measurement of the orthogonal+ box's containing block to be indefinite+ */+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="auto-sized-vlr-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-008.xht b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-008.xhtnew file mode 100644index 00000000000..525fb93368a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-008.xht@@ -0,0 +1,74 @@+<!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 Writing Modes Test: sizing of orthogonal 'horizontal-tb' block with percent inline-size inside definite-sized 'vertical-lr' containing block</title>++ <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />+ <link rel="help" href="https://www.w3.org/TR/css-writing-modes-3/#orthogonal-auto" title="7.3.1 Available Sizes in Orthogonal Flows" />+ <link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/sizing-orthog-prct-htb-in-vlr-008-ref.xht" />++ <meta name="DC.date.created" content="2016-12-20T09:54:03+11:00" scheme="W3CDTF" />+ <meta name="DC.date.modified" content="2017-01-03T09:54:03+11:00" scheme="W3CDTF" />++ <meta name="assert" content="In this test, the width of the containing block is definite, therefore 50% is applied on the width of such containing block which is, in this test, 400px." />++ <!--++ Inside this batch of 8 sizing-orthog-prct-htb-in-vlr tests:+ 001-004: body has 100px margin-left and 100px margin-right+ 005-008: body has no horizontal margins++ Inside each sub-batch of 4 tests:+ 001-002: containing block's width is 'auto' therefore indefinite+ 003-004: containing block's width is 400px therefore definite++ Inside each sub-sub-batch of 2 tests:+ 001: containing block has 1 sentence before and after+ 002: containing block has no sentence before and no sentence after++ 001 and 005 tests use a 35px thick border.++ -->++ <style type="text/css"><![CDATA[+ html+ {+ writing-mode: vertical-lr;+ }++ body+ {+ font-size: 16px;+ line-height: 1.25; /* therefore, each line box is 20px tall */+ margin-left: 0px;+ margin-right: 0px;+ }++ div#sized-400px-vlr-containing-block+ {+ width: 400px;+ }++ div#ortho-block-htb+ {+ border: blue solid 3px;+ width: 50%;+ writing-mode: horizontal-tb;+ }+ ]]></style>++ </head>++ <body>++ <div id="sized-400px-vlr-containing-block">++ <div id="ortho-block-htb">01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 00</div>++ </div>++ </body>+</html>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-2col-2row-320x320.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-2col-2row-320x320.pngnew file mode 100644index 00000000000..4f354e93527Binary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-2col-2row-320x320.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-2col-3row-320x320.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-2col-3row-320x320.pngnew file mode 100644index 00000000000..6eded69a4a3Binary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-2col-3row-320x320.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-3col-2row-320x320.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-3col-2row-320x320.pngnew file mode 100644index 00000000000..5f4b53c46b7Binary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-3col-2row-320x320.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-3col-3row-320x320.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-3col-3row-320x320.pngnew file mode 100644index 00000000000..4c2f6c8e632Binary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/bg-red-3col-3row-320x320.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/block-flow-direction-025-exp-res.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/block-flow-direction-025-exp-res.pngnew file mode 100644index 00000000000..851eeea0398Binary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/block-flow-direction-025-exp-res.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/block-flow-direction-066-exp-res.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/block-flow-direction-066-exp-res.pngnew file mode 100644index 00000000000..d325b15a4cfBinary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/block-flow-direction-066-exp-res.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/blue1x1.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/blue1x1.pngnew file mode 100644index 00000000000..667b6558892Binary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/blue1x1.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/margin-collapse-2em-space-wm-vert.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/margin-collapse-2em-space-wm-vert.pngnew file mode 100644index 00000000000..8a2fa55efdfBinary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/margin-collapse-2em-space-wm-vert.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/pass-cdts-abs-pos-non-replaced.png b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/pass-cdts-abs-pos-non-replaced.pngnew file mode 100644index 00000000000..15fd6065ef6Binary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/support/pass-cdts-abs-pos-non-replaced.png differdiff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-020.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-020.htmlnew file mode 100644index 00000000000..eab2f22da01--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-020.html@@ -0,0 +1,39 @@+<!DOCTYPE html>+<html lang=en>+<meta charset="utf-8">+<title>CSS Writing-Modes test: text-orientation on list markers</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orientation">+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#marker-properties">+<link rel=match href="../../../../expected/wpt-import/css/css-writing-modes/reference/text-orientation-020-ref.html">+<meta name="assert" content="text-orientation applies to text, and thus to the text in ::marker pseudos">+<style>+.test ol {+ text-orientation: mixed; /*the default*/+}+.test ol li::marker {+ text-orientation: upright;+}+.ref ol {+ text-orientation: upright;+}+.ref span {+ text-orientation: mixed;+}+figure {+ writing-mode: vertical-rl;+ border: solid 1px black;+ padding: 1em 0 1ch;+ margin: 0 1ch;+ float: left;+}+</style>++<p>Test passes if the two boxes below are identical.++<figure class=test>+ <ol><li>hello世界</ol>+</figure>+<figure class=ref>+ <ol><li><span>hello世界</span></ol>+</figure>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-021.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-021.htmlnew file mode 100644index 00000000000..71dc1c654f3--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-021.html@@ -0,0 +1,27 @@+<!DOCTYPE html>+<html lang=en>+<meta charset="utf-8">+<title>CSS Writing-Modes test: text-orientation on text</title>+<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orientation">+<link rel="help" href="https://drafts.csswg.org/css-lists-3/#marker-properties">+<link rel=match href="../../../../expected/wpt-import/css/css-writing-modes/reference/text-orientation-021-ref.html">+<meta name="assert" content="text-orientation applies to text, and thus works even if there is no parent box with that same value">+<style>+body > div {+ border: solid 1px black;+ padding: 10px;+ margin: 10px;+ float: left;+}+</style>++<p>Test passes if the two boxes below are identical.++<div style="writing-mode: vertical-rl; text-orientation: upright">+ AB+</div>++<div style="writing-mode: vertical-rl">+ <div style="display: contents; text-orientation: upright">AB</div>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-initial.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-initial.htmlnew file mode 100644index 00000000000..c1547962cc1--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-initial.html@@ -0,0 +1,10 @@+<!DOCTYPE html>+<link rel=help href="https://drafts.csswg.org/css-writing-modes-4/#text-orientation">+<link rel=help href="https://crbug.com/1081659">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/text-orientation-initial-ref.html">+<div style="writing-mode:vertical-rl;text-orientation:upright">+ <div style="text-orientation:initial">+ vertical+ </div>+</div>+diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-mixed-vlr-100.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-mixed-vlr-100.htmlnew file mode 100644index 00000000000..7cf90029d1f--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-mixed-vlr-100.html@@ -0,0 +1,51 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-lr; text-orientation: mixed.</title>+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/text-orientation-mixed-vlr-100-ref.html">+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-lr;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: mixed;+ text-autospace: no-autospace;+ }+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line"> !"#$%&'()*+,-./0123456789:;=?@A</div>+<div class="line">BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a</div>+<div class="line">bcdefghijklmnopqrstuvwxyz{|}~</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line"> 、。〃〄々〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟</div>+<div class="line">〠〡〢〣〤〥〦〧〨〩〰〱〲〳〴〵〶〷〸〹〺〻〼〽〾〿ぁあぃいぅう</div>+<div class="line">ぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづて</div>+<div class="line">でとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆ</div>+<div class="line">ょよらりるれろゎわゐゑをんゔゕゖ゛゜ゝゞゟ゠ァアィイゥウェエォオ</div>+<div class="line">カガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナ</div>+<div class="line">ニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリ</div>+<div class="line">ルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">一丁丂七丄丅丆万丈三上下丌不与丏丐丑丒专且丕世丗丘丙业丛东丝丞丟</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">!"#$%&'()*+,-./0123456789:;<=>?@</div>+<div class="line">ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`</div>+<div class="line">abcdefghijklmnopqrstuvwxyz{|}~⦅⦆</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-mixed-vrl-100.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-mixed-vrl-100.htmlnew file mode 100644index 00000000000..c4803e6f822--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-mixed-vrl-100.html@@ -0,0 +1,51 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-rl; text-orientation: mixed.</title>+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/text-orientation-mixed-vrl-100-ref.html">+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-rl;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: mixed;+ text-autospace: no-autospace;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line"> !"#$%&'()*+,-./0123456789:;=?@A</div>+<div class="line">BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a</div>+<div class="line">bcdefghijklmnopqrstuvwxyz{|}~</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line"> 、。〃〄々〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟</div>+<div class="line">〠〡〢〣〤〥〦〧〨〩〰〱〲〳〴〵〶〷〸〹〺〻〼〽〾〿ぁあぃいぅう</div>+<div class="line">ぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづて</div>+<div class="line">でとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆ</div>+<div class="line">ょよらりるれろゎわゐゑをんゔゕゖ゛゜ゝゞゟ゠ァアィイゥウェエォオ</div>+<div class="line">カガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナ</div>+<div class="line">ニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリ</div>+<div class="line">ルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">一丁丂七丄丅丆万丈三上下丌不与丏丐丑丒专且丕世丗丘丙业丛东丝丞丟</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">!"#$%&'()*+,-./0123456789:;<=>?@</div>+<div class="line">ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`</div>+<div class="line">abcdefghijklmnopqrstuvwxyz{|}~⦅⦆</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-sideways-vlr-100.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-sideways-vlr-100.htmlnew file mode 100644index 00000000000..5c0137ce9db--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-sideways-vlr-100.html@@ -0,0 +1,51 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-lr; text-orientation: sideways.</title>+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/text-orientation-sideways-vlr-100-ref.html">+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-lr;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: sideways;+ text-autospace: no-autospace;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line"> !"#$%&'()*+,-./0123456789:;=?@A</div>+<div class="line">BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a</div>+<div class="line">bcdefghijklmnopqrstuvwxyz{|}~</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line"> 、。〃〄々〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟</div>+<div class="line">〠〡〢〣〤〥〦〧〨〩〰〱〲〳〴〵〶〷〸〹〺〻〼〽〾〿ぁあぃいぅう</div>+<div class="line">ぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづて</div>+<div class="line">でとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆ</div>+<div class="line">ょよらりるれろゎわゐゑをんゔゕゖ゛゜ゝゞゟ゠ァアィイゥウェエォオ</div>+<div class="line">カガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナ</div>+<div class="line">ニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリ</div>+<div class="line">ルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">一丁丂七丄丅丆万丈三上下丌不与丏丐丑丒专且丕世丗丘丙业丛东丝丞丟</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">!"#$%&'()*+,-./0123456789:;<=>?@</div>+<div class="line">ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`</div>+<div class="line">abcdefghijklmnopqrstuvwxyz{|}~⦅⦆</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-sideways-vrl-100.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-sideways-vrl-100.htmlnew file mode 100644index 00000000000..dfa65803ac5--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-sideways-vrl-100.html@@ -0,0 +1,51 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-rl; text-orientation: sideways.</title>+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/text-orientation-sideways-vrl-100-ref.html">+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-rl;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: sideways;+ text-autospace: no-autospace;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line"> !"#$%&'()*+,-./0123456789:;=?@A</div>+<div class="line">BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a</div>+<div class="line">bcdefghijklmnopqrstuvwxyz{|}~</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line"> 、。〃〄々〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟</div>+<div class="line">〠〡〢〣〤〥〦〧〨〩〰〱〲〳〴〵〶〷〸〹〺〻〼〽〾〿ぁあぃいぅう</div>+<div class="line">ぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづて</div>+<div class="line">でとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆ</div>+<div class="line">ょよらりるれろゎわゐゑをんゔゕゖ゛゜ゝゞゟ゠ァアィイゥウェエォオ</div>+<div class="line">カガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナ</div>+<div class="line">ニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリ</div>+<div class="line">ルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">一丁丂七丄丅丆万丈三上下丌不与丏丐丑丒专且丕世丗丘丙业丛东丝丞丟</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">!"#$%&'()*+,-./0123456789:;<=>?@</div>+<div class="line">ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`</div>+<div class="line">abcdefghijklmnopqrstuvwxyz{|}~⦅⦆</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-directionality-001.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-directionality-001.htmlnew file mode 100644index 00000000000..d4e63b5fe87--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-directionality-001.html@@ -0,0 +1,21 @@+<!DOCTYPE html>+<html>+<head>+<meta charset="utf-8">+<title>CSS Test: text-orientation:upright in sideways-* writing modes</title>+<link rel="author" title="Jonathan Kew" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orientation">+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/text-orientation-upright-directionality-001-ref.html">+<meta name="assert" content="text-orientation has no effect in horizontal typographic modes">+</head>+<body style="font: 24px sans-serif">+<p>The two sideways-rl lines should be identical:+<div style="writing-mode:sideways-rl">+ <p>hello العربي world עברית</p>+ <p style="text-orientation:upright">hello العربي world עברית</p>+</div>+<p>The two sideways-lr lines should be identical:+<div style="writing-mode:sideways-lr">+ <p>hello العربي world עברית</p>+ <p style="text-orientation:upright">hello العربي world עברית</p>+</div>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-vlr-100.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-vlr-100.htmlnew file mode 100644index 00000000000..25e801bb157--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-vlr-100.html@@ -0,0 +1,50 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-lr; text-orientation: upright.</title>+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/text-orientation-upright-vlr-100-ref.html">+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-lr;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: upright;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line"> !"#$%&'()*+,-./0123456789:;=?@A</div>+<div class="line">BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a</div>+<div class="line">bcdefghijklmnopqrstuvwxyz{|}~</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line"> 、。〃〄々〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟</div>+<div class="line">〠〡〢〣〤〥〦〧〨〩〰〱〲〳〴〵〶〷〸〹〺〻〼〽〾〿ぁあぃいぅう</div>+<div class="line">ぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづて</div>+<div class="line">でとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆ</div>+<div class="line">ょよらりるれろゎわゐゑをんゔゕゖ゛゜ゝゞゟ゠ァアィイゥウェエォオ</div>+<div class="line">カガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナ</div>+<div class="line">ニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリ</div>+<div class="line">ルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">一丁丂七丄丅丆万丈三上下丌不与丏丐丑丒专且丕世丗丘丙业丛东丝丞丟</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">!"#$%&'()*+,-./0123456789:;<=>?@</div>+<div class="line">ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`</div>+<div class="line">abcdefghijklmnopqrstuvwxyz{|}~⦅⦆</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-vrl-100.html b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-vrl-100.htmlnew file mode 100644index 00000000000..b40ebfc7c8a--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/css-writing-modes/text-orientation-upright-vrl-100.html@@ -0,0 +1,50 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: writing-mode: vertical-rl; text-orientation: upright.</title>+<link rel="match" href="../../../../expected/wpt-import/css/css-writing-modes/text-orientation-upright-vrl-100-ref.html">+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#text-orientation">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<style>+@font-face {+ font-family: "orientation";+ src: url("../../fonts/adobe-fonts/CSSHWOrientationTest.otf");+}+html {+ writing-mode: vertical-rl;+}+.test {+ font: 20px/1 "orientation";+ height: 17em;+ text-orientation: upright;+}+.line {+ white-space: pre;+}+</style>+<body>+<div id="container">+<div>U+0020-007E<div class="test">+<div class="line"> !"#$%&'()*+,-./0123456789:;=?@A</div>+<div class="line">BCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`a</div>+<div class="line">bcdefghijklmnopqrstuvwxyz{|}~</div>+</div></div>+<div>U+3000-30FF<div class="test">+<div class="line"> 、。〃〄々〆〇〈〉《》「」『』【】〒〓〔〕〖〗〘〙〚〛〜〝〞〟</div>+<div class="line">〠〡〢〣〤〥〦〧〨〩〰〱〲〳〴〵〶〷〸〹〺〻〼〽〾〿ぁあぃいぅう</div>+<div class="line">ぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづて</div>+<div class="line">でとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆ</div>+<div class="line">ょよらりるれろゎわゐゑをんゔゕゖ゛゜ゝゞゟ゠ァアィイゥウェエォオ</div>+<div class="line">カガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナ</div>+<div class="line">ニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリ</div>+<div class="line">ルレロヮワヰヱヲンヴヵヶヷヸヹヺ・ーヽヾヿ</div>+</div></div>+<div>U+4E00-4E1F<div class="test">+<div class="line">一丁丂七丄丅丆万丈三上下丌不与丏丐丑丒专且丕世丗丘丙业丛东丝丞丟</div>+</div></div>+<div>U+FF01-FF60<div class="test">+<div class="line">!"#$%&'()*+,-./0123456789:;<=>?@</div>+<div class="line">ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`</div>+<div class="line">abcdefghijklmnopqrstuvwxyz{|}~⦅⦆</div>+</div></div>+</div>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/css/cssom-view/cssom-getBoundingClientRect-vertical-rl.html b/Tests/LibWeb/Ref/input/wpt-import/css/cssom-view/cssom-getBoundingClientRect-vertical-rl.htmlnew file mode 100644index 00000000000..1ae0bbbb7d7--- /dev/null+++ b/Tests/LibWeb/Ref/input/wpt-import/css/cssom-view/cssom-getBoundingClientRect-vertical-rl.html@@ -0,0 +1,17 @@+<!DOCTYPE html>+<title>CSSOM View - 6.1 - getBoundingClientRect tests</title>+<link rel="help" href="http://www.w3.org/TR/cssom-view/#dom-element-getboundingclientrect">+<link rel=match href="../../../../expected/wpt-import/css/cssom-view/cssom-getBoundingClientRect-vertical-rl-ref.html">+<meta name="flags" content="dom">+<body style="writing-mode: vertical-rl; overflow: hidden">+ <div id="target" style="position: absolute; top: 50px; left: 50px; width: 200px; height: 200px; background: red"></div>+ <div id="overlay" style="position: absolute; background: green"></div>+ <script>+ var r = document.getElementById('target').getBoundingClientRect();+ var overlay = document.getElementById('overlay');+ overlay.style.top = r.top + 'px';+ overlay.style.left = r.left + 'px';+ overlay.style.width = r.width + 'px';+ overlay.style.height = r.height + 'px';+ </script>+</body>diff --git a/Tests/LibWeb/Ref/input/wpt-import/fonts/adobe-fonts/CSSHWOrientationTest.otf b/Tests/LibWeb/Ref/input/wpt-import/fonts/adobe-fonts/CSSHWOrientationTest.otfnew file mode 100644index 00000000000..84ad57bef5aBinary files /dev/null and b/Tests/LibWeb/Ref/input/wpt-import/fonts/adobe-fonts/CSSHWOrientationTest.otf differdiff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-ltr-vrl.txtnew file mode 100644index 00000000000..63a8b1b1883--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-ltr-vrl.txt@@ -0,0 +1,20 @@+Harness status: OK++Found 14 tests++2 Pass+12 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Pass .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Pass .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-rtl-vrl.txtnew file mode 100644index 00000000000..63a8b1b1883--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-rtl-vrl.txt@@ -0,0 +1,20 @@+Harness status: OK++Found 14 tests++2 Pass+12 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Pass .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Pass .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-htb.txtnew file mode 100644index 00000000000..5ed5708325a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-htb.txt@@ -0,0 +1,19 @@+Harness status: OK++Found 14 tests++14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-vrl.txtnew file mode 100644index 00000000000..5ed5708325a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-vrl.txt@@ -0,0 +1,19 @@+Harness status: OK++Found 14 tests++14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-htb.txtnew file mode 100644index 00000000000..5ed5708325a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-htb.txt@@ -0,0 +1,19 @@+Harness status: OK++Found 14 tests++14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-vrl.txtnew file mode 100644index 00000000000..5ed5708325a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-vrl.txt@@ -0,0 +1,19 @@+Harness status: OK++Found 14 tests++14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-ltr-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-ltr-vlr.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-ltr-vlr.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-ltr-vrl.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-ltr-vrl.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-rtl-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-rtl-vlr.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-rtl-vlr.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-rtl-vrl.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-htb-rtl-vrl.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-htb.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-htb.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vlr.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vlr.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vrl.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vrl.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-htb.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-htb.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vlr.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vlr.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vrl.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vrl.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-htb.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-htb.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vlr.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vlr.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vrl.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vrl.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-htb.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-htb.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vlr.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vlr.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vrl.txtnew file mode 100644index 00000000000..814bb2f4757--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vrl.txt@@ -0,0 +1,22 @@+Harness status: OK++Found 16 tests++2 Pass+14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Pass .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Pass .item 16\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-ltr-vrl.txtnew file mode 100644index 00000000000..63a8b1b1883--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-ltr-vrl.txt@@ -0,0 +1,20 @@+Harness status: OK++Found 14 tests++2 Pass+12 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Pass .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Pass .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-rtl-vrl.txtnew file mode 100644index 00000000000..5ed5708325a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-rtl-vrl.txt@@ -0,0 +1,19 @@+Harness status: OK++Found 14 tests++14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-htb.txtnew file mode 100644index 00000000000..63a8b1b1883--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-htb.txt@@ -0,0 +1,20 @@+Harness status: OK++Found 14 tests++2 Pass+12 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Pass .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Pass .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-vrl.txtnew file mode 100644index 00000000000..63a8b1b1883--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-vrl.txt@@ -0,0 +1,20 @@+Harness status: OK++Found 14 tests++2 Pass+12 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Pass .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Pass .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-htb.txtnew file mode 100644index 00000000000..5ed5708325a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-htb.txt@@ -0,0 +1,19 @@+Harness status: OK++Found 14 tests++14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-vrl.txtnew file mode 100644index 00000000000..5ed5708325a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-vrl.txt@@ -0,0 +1,19 @@+Harness status: OK++Found 14 tests++14 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vlr.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vlr.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vrl.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vrl.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vlr.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vlr.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vrl.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vrl.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-htb.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-htb.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vlr.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vlr.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vrl.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vrl.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-htb.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-htb.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vlr.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vlr.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vrl.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vrl.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-htb.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-htb.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vlr.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vlr.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vrl.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vrl.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-htb.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-htb.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vlr.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vlr.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vrl.txtnew file mode 100644index 00000000000..3cdc4e84fea--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vrl.txt@@ -0,0 +1,26 @@+Harness status: OK++Found 20 tests++2 Pass+18 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Pass .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Fail .item 19+Pass .item 20\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vlr.txtnew file mode 100644index 00000000000..20b703124f8--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vlr.txt@@ -0,0 +1,30 @@+Harness status: OK++Found 24 tests++12 Pass+12 Fail+Pass .item 1+Pass .item 2+Pass .item 3+Pass .item 4+Pass .item 5+Pass .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Pass .item 13+Pass .item 14+Pass .item 15+Pass .item 16+Pass .item 17+Pass .item 18+Fail .item 19+Fail .item 20+Fail .item 21+Fail .item 22+Fail .item 23+Fail .item 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vrl.txtnew file mode 100644index 00000000000..94a03d555dc--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-align-self-vrl.txt@@ -0,0 +1,30 @@+Harness status: OK++Found 24 tests++12 Pass+12 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Fail .item 4+Fail .item 5+Fail .item 6+Pass .item 7+Pass .item 8+Pass .item 9+Pass .item 10+Pass .item 11+Pass .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Pass .item 19+Pass .item 20+Pass .item 21+Pass .item 22+Pass .item 23+Pass .item 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-justify-self-vlr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-justify-self-vlr.txtnew file mode 100644index 00000000000..10df48388a8--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-justify-self-vlr.txt@@ -0,0 +1,30 @@+Harness status: OK++Found 24 tests++12 Pass+12 Fail+Pass .item 1+Pass .item 2+Pass .item 3+Pass .item 4+Pass .item 5+Pass .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Pass .item 19+Pass .item 20+Pass .item 21+Pass .item 22+Pass .item 23+Pass .item 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-justify-self-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-justify-self-vrl.txtnew file mode 100644index 00000000000..10df48388a8--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/safe-justify-self-vrl.txt@@ -0,0 +1,30 @@+Harness status: OK++Found 24 tests++12 Pass+12 Fail+Pass .item 1+Pass .item 2+Pass .item 3+Pass .item 4+Pass .item 5+Pass .item 6+Fail .item 7+Fail .item 8+Fail .item 9+Fail .item 10+Fail .item 11+Fail .item 12+Fail .item 13+Fail .item 14+Fail .item 15+Fail .item 16+Fail .item 17+Fail .item 18+Pass .item 19+Pass .item 20+Pass .item 21+Pass .item 22+Pass .item 23+Pass .item 24\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-htb-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-htb-vrl.txtnew file mode 100644index 00000000000..ad05f0fa994--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-htb-vrl.txt@@ -0,0 +1,18 @@+Harness status: OK++Found 12 tests++3 Pass+9 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Pass .item 4+Fail .item 5+Pass .item 6+Fail .item 7+Fail .item 8+Pass .item 9+Fail .item 10+Fail .item 11+Fail .item 12\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.txtnew file mode 100644index 00000000000..44081383fd0--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.txt@@ -0,0 +1,18 @@+Harness status: OK++Found 12 tests++3 Pass+9 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Pass .item 4+Fail .item 5+Fail .item 6+Pass .item 7+Fail .item 8+Pass .item 9+Fail .item 10+Fail .item 11+Fail .item 12\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.txtnew file mode 100644index 00000000000..44081383fd0--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.txt@@ -0,0 +1,18 @@+Harness status: OK++Found 12 tests++3 Pass+9 Fail+Fail .item 1+Fail .item 2+Fail .item 3+Pass .item 4+Fail .item 5+Fail .item 6+Pass .item 7+Fail .item 8+Pass .item 9+Fail .item 10+Fail .item 11+Fail .item 12\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.txtnew file mode 100644index 00000000000..4f7e457de8a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.txt@@ -0,0 +1,30 @@+Harness status: OK++Found 24 tests++18 Pass+6 Fail+Pass 1: Shrink-to-fit inline-block with a child of orthogonal block+Pass 2: Shrink-to-fit inline-block with a child of orthogonal inline+Pass 3: Shrink-to-fit inline-block with a child of orthogonal block with borders+Fail 4: Shrink-to-fit inline-block with a child of orthogonal inline with borders+Pass 5: Shrink-to-fit inline-block with a child of orthogonal block in inline-block+Pass 6: Shrink-to-fit inline-block with a child of orthogonal inline in inline-block+Pass 7: Shrink-to-fit inline-block with a child of orthogonal block with borders in inline-block+Fail 8: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block+Pass 9: Shrink-to-fit float with a child of orthogonal block+Pass 10: Shrink-to-fit float with a child of orthogonal inline+Pass 11: Shrink-to-fit float with a child of orthogonal block with borders+Fail 12: Shrink-to-fit float with a child of orthogonal inline with borders+Pass 13: Shrink-to-fit float with a child of orthogonal block in inline-block+Pass 14: Shrink-to-fit float with a child of orthogonal inline in inline-block+Pass 15: Shrink-to-fit float with a child of orthogonal block with borders in inline-block+Fail 16: Shrink-to-fit float with a child of orthogonal inline with borders in inline-block+Pass 17: Shrink-to-fit table-cell with a child of orthogonal block+Pass 18: Shrink-to-fit table-cell with a child of orthogonal inline+Pass 19: Shrink-to-fit table-cell with a child of orthogonal block with borders+Fail 20: Shrink-to-fit table-cell with a child of orthogonal inline with borders+Pass 21: Shrink-to-fit table-cell with a child of orthogonal block in inline-block+Pass 22: Shrink-to-fit table-cell with a child of orthogonal inline in inline-block+Pass 23: Shrink-to-fit table-cell with a child of orthogonal block with borders in inline-block+Fail 24: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001a.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001a.txtnew file mode 100644index 00000000000..1615c762a46--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001a.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 1: Shrink-to-fit inline-block with a child of orthogonal block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001b.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001b.txtnew file mode 100644index 00000000000..76344478e81--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001b.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 2: Shrink-to-fit inline-block with a child of orthogonal inline\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001c.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001c.txtnew file mode 100644index 00000000000..c945128edb0--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001c.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 3: Shrink-to-fit inline-block with a child of orthogonal block with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.txtnew file mode 100644index 00000000000..4278fb3221e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 4: Shrink-to-fit inline-block with a child of orthogonal inline with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001e.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001e.txtnew file mode 100644index 00000000000..34c81fb9c3e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001e.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 5: Shrink-to-fit inline-block with a child of orthogonal block in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001f.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001f.txtnew file mode 100644index 00000000000..96795be51c7--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001f.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 6: Shrink-to-fit inline-block with a child of orthogonal inline in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001g.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001g.txtnew file mode 100644index 00000000000..e297416ad69--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001g.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 7: Shrink-to-fit inline-block with a child of orthogonal block with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.txtnew file mode 100644index 00000000000..6282b9ce989--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 8: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001i.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001i.txtnew file mode 100644index 00000000000..925641a6994--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001i.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 9: Shrink-to-fit float with a child of orthogonal block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001j.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001j.txtnew file mode 100644index 00000000000..87f2c3f0fc8--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001j.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 10: Shrink-to-fit float with a child of orthogonal inline\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001k.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001k.txtnew file mode 100644index 00000000000..1b9336985b4--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001k.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 11: Shrink-to-fit float with a child of orthogonal block with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.txtnew file mode 100644index 00000000000..4b122a46c5b--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 12: Shrink-to-fit float with a child of orthogonal inline with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001m.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001m.txtnew file mode 100644index 00000000000..178be9ee3dc--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001m.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 13: Shrink-to-fit float with a child of orthogonal block in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001n.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001n.txtnew file mode 100644index 00000000000..a3c21dd8dc5--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001n.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 14: Shrink-to-fit float with a child of orthogonal inline in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001o.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001o.txtnew file mode 100644index 00000000000..77dbb5316db--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001o.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 15: Shrink-to-fit float with a child of orthogonal block with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.txtnew file mode 100644index 00000000000..c0c01676137--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 16: Shrink-to-fit float with a child of orthogonal inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001q.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001q.txtnew file mode 100644index 00000000000..83bd504ae96--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001q.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 17: Shrink-to-fit table-cell with a child of orthogonal block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001r.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001r.txtnew file mode 100644index 00000000000..49752e50bad--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001r.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 18: Shrink-to-fit table-cell with a child of orthogonal inline\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001s.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001s.txtnew file mode 100644index 00000000000..3c83757673d--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001s.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 19: Shrink-to-fit table-cell with a child of orthogonal block with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.txtnew file mode 100644index 00000000000..f76fade0264--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 20: Shrink-to-fit table-cell with a child of orthogonal inline with borders\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001u.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001u.txtnew file mode 100644index 00000000000..e2af3d74134--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001u.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 21: Shrink-to-fit table-cell with a child of orthogonal block in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001v.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001v.txtnew file mode 100644index 00000000000..9404e3ec717--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001v.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 22: Shrink-to-fit table-cell with a child of orthogonal inline in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001w.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001w.txtnew file mode 100644index 00000000000..beb462fad8f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001w.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass 23: Shrink-to-fit table-cell with a child of orthogonal block with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.txtnew file mode 100644index 00000000000..cc2b4b7669e--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail 24: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-002.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-002.txtnew file mode 100644index 00000000000..7673ed58554--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-002.txt@@ -0,0 +1,17 @@+Harness status: OK++Found 12 tests++12 Pass+Pass 1: Shrink-to-fit inline-block with a child of orthogonal atomic inline+Pass 2: Shrink-to-fit inline-block with a child of orthogonal atomic inline with borders+Pass 3: Shrink-to-fit inline-block with a child of orthogonal atomic inline in inline-block+Pass 4: Shrink-to-fit inline-block with a child of orthogonal atomic inline with borders in inline-block+Pass 5: Shrink-to-fit float with a child of orthogonal atomic inline+Pass 6: Shrink-to-fit float with a child of orthogonal atomic inline with borders+Pass 7: Shrink-to-fit float with a child of orthogonal atomic inline in inline-block+Pass 8: Shrink-to-fit float with a child of orthogonal atomic inline with borders in inline-block+Pass 9: Shrink-to-fit table-cell with a child of orthogonal atomic inline+Pass 10: Shrink-to-fit table-cell with a child of orthogonal atomic inline with borders+Pass 11: Shrink-to-fit table-cell with a child of orthogonal atomic inline in inline-block+Pass 12: Shrink-to-fit table-cell with a child of orthogonal atomic inline with borders in inline-block\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/text-orientation-parsing-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/text-orientation-parsing-001.txtnew file mode 100644index 00000000000..9bc61d8fd9f--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/text-orientation-parsing-001.txt@@ -0,0 +1,13 @@+Harness status: OK++Found 8 tests++8 Fail+Fail text-orientation initial value+Fail text-orientation: upright+Fail text-orientation: sideways+Fail text-orientation should inherit+Fail text-orientation: mixed+Fail text-orientation: initial+Fail text-orientation: inherit+Fail text-orientation: foo\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/text-orientation-parsing-sideways-right-001.txt b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/text-orientation-parsing-sideways-right-001.txtnew file mode 100644index 00000000000..bfae0d38ea5--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/css-writing-modes/text-orientation-parsing-sideways-right-001.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail text-orientation: sideways-right\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.txtnew file mode 100644index 00000000000..31991832b8a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail elementsFromPoint should return all elements under a point\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.txtnew file mode 100644index 00000000000..31991832b8a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail elementsFromPoint should return all elements under a point\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-ltr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-ltr.txtnew file mode 100644index 00000000000..4338b948168--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-ltr.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass elementsFromPoint should return all elements under a point\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-rtl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-rtl.txtnew file mode 100644index 00000000000..4338b948168--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-rtl.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Pass+Pass elementsFromPoint should return all elements under a point\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vlr-ltr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vlr-ltr.txtnew file mode 100644index 00000000000..f3267b4cc9a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vlr-ltr.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Position of the BR element\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vlr-rtl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vlr-rtl.txtnew file mode 100644index 00000000000..f3267b4cc9a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vlr-rtl.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Position of the BR element\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vrl-ltr.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vrl-ltr.txtnew file mode 100644index 00000000000..f3267b4cc9a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vrl-ltr.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Position of the BR element\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vrl-rtl.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vrl-rtl.txtnew file mode 100644index 00000000000..f3267b4cc9a--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/getClientRects-br-vrl-rtl.txt@@ -0,0 +1,6 @@+Harness status: OK++Found 1 tests++1 Fail+Fail Position of the BR element\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.txtnew file mode 100644index 00000000000..a3ac1a04dc3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.txt@@ -0,0 +1,14 @@+Harness status: OK++Found 9 tests++9 Fail+Fail scrollIntoView({"block":"start","inline":"start"})+Fail scrollIntoView({"block":"start","inline":"center"})+Fail scrollIntoView({"block":"start","inline":"end"})+Fail scrollIntoView({"block":"center","inline":"start"})+Fail scrollIntoView({"block":"center","inline":"center"})+Fail scrollIntoView({"block":"center","inline":"end"})+Fail scrollIntoView({"block":"end","inline":"start"})+Fail scrollIntoView({"block":"end","inline":"center"})+Fail scrollIntoView({"block":"end","inline":"end"})\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode.txtnew file mode 100644index 00000000000..549584cdebf--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode.txt@@ -0,0 +1,15 @@+Harness status: OK++Found 9 tests++3 Pass+6 Fail+Pass scrollIntoView({"block":"start","inline":"start"})+Fail scrollIntoView({"block":"start","inline":"center"})+Fail scrollIntoView({"block":"start","inline":"end"})+Fail scrollIntoView({"block":"center","inline":"start"})+Pass scrollIntoView({"block":"center","inline":"center"})+Fail scrollIntoView({"block":"center","inline":"end"})+Fail scrollIntoView({"block":"end","inline":"start"})+Fail scrollIntoView({"block":"end","inline":"center"})+Pass scrollIntoView({"block":"end","inline":"end"})\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.txt b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.txtnew file mode 100644index 00000000000..a3ac1a04dc3--- /dev/null+++ b/Tests/LibWeb/Text/expected/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.txt@@ -0,0 +1,14 @@+Harness status: OK++Found 9 tests++9 Fail+Fail scrollIntoView({"block":"start","inline":"start"})+Fail scrollIntoView({"block":"start","inline":"center"})+Fail scrollIntoView({"block":"start","inline":"end"})+Fail scrollIntoView({"block":"center","inline":"start"})+Fail scrollIntoView({"block":"center","inline":"center"})+Fail scrollIntoView({"block":"center","inline":"end"})+Fail scrollIntoView({"block":"end","inline":"start"})+Fail scrollIntoView({"block":"end","inline":"center"})+Fail scrollIntoView({"block":"end","inline":"end"})\ No newline at end of filediff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-ltr-vrl.htmlnew file mode 100644index 00000000000..36085cd72ab--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-ltr-vrl.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ align-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="15">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="5">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="0">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="-15">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="-20">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="15">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="5">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="0">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="-15">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="-20">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-rtl-vrl.htmlnew file mode 100644index 00000000000..cc788720b63--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-htb-rtl-vrl.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ align-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="15">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="5">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="0">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="-15">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="-20">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="15">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="5">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="0">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="-15">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="-20">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-htb.htmlnew file mode 100644index 00000000000..483e73363df--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-htb.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ align-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-vrl.htmlnew file mode 100644index 00000000000..be770019db1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-ltr-vrl.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ align-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-htb.htmlnew file mode 100644index 00000000000..82cd5771839--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-htb.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ align-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-vrl.htmlnew file mode 100644index 00000000000..9838e200296--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-default-overflow-vrl-rtl-vrl.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ align-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-ltr-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-ltr-vlr.htmlnew file mode 100644index 00000000000..802527e73ab--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-ltr-vlr.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-ltr-vrl.htmlnew file mode 100644index 00000000000..fa4370f8dac--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-ltr-vrl.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-rtl-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-rtl-vlr.htmlnew file mode 100644index 00000000000..1eb92cf209f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-rtl-vlr.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-rtl-vrl.htmlnew file mode 100644index 00000000000..e17d2878456--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-htb-rtl-vrl.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-htb.htmlnew file mode 100644index 00000000000..73e0a636e4c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-htb.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vlr.htmlnew file mode 100644index 00000000000..8a03aace1a7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vlr.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vrl.htmlnew file mode 100644index 00000000000..89482aaf010--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-ltr-vrl.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-htb.htmlnew file mode 100644index 00000000000..c02f82d9d55--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-htb.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vlr.htmlnew file mode 100644index 00000000000..a431d32b69d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vlr.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vrl.htmlnew file mode 100644index 00000000000..10b22d8ff2d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vlr-rtl-vrl.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-htb.htmlnew file mode 100644index 00000000000..049ccfc837c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-htb.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vlr.htmlnew file mode 100644index 00000000000..2a2dd30a5bb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vlr.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vrl.htmlnew file mode 100644index 00000000000..d547e411186--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-ltr-vrl.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-htb.htmlnew file mode 100644index 00000000000..42f1660ee15--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-htb.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vlr.htmlnew file mode 100644index 00000000000..2a2dd30a5bb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vlr.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vrl.htmlnew file mode 100644index 00000000000..d547e411186--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/align-self-vrl-rtl-vrl.html@@ -0,0 +1,110 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="align-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="align-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-ltr-vrl.htmlnew file mode 100644index 00000000000..9637025fcd2--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-ltr-vrl.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ justify-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: 20px; right: 10px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="left: 20px; right: 10px;" data-offset-x="15">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 20px; right: 10px;" data-offset-x="5">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 20px; right: 10px;" data-offset-x="0">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -20px; right: -10px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -20px; right: -10px;" data-offset-x="-15">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: -20px; right: -10px;" data-offset-x="-20">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: 20px; right: 10px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="left: 20px; right: 10px;" data-offset-x="15">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 20px; right: 10px;" data-offset-x="5">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 20px; right: 10px;" data-offset-x="0">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -20px; right: -10px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -20px; right: -10px;" data-offset-x="-15">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: -20px; right: -10px;" data-offset-x="-20">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-rtl-vrl.htmlnew file mode 100644index 00000000000..cfbcfe83962--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-htb-rtl-vrl.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ justify-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="5">+ <div class="inner" style="width: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="0">+ <div class="inner" style="width: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: 10px; right: 20px;" data-offset-x="-20">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-5">+ <div class="inner" style="width: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="left: -10px; right: -20px;" data-offset-x="-40">+ <div class="inner" style="width: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-htb.htmlnew file mode 100644index 00000000000..dfc2bed5ea4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-htb.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ justify-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="15">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="5">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="0">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="-15">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="-20">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="15">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="5">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="0">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="-15">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="-20">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-vrl.htmlnew file mode 100644index 00000000000..697da8ae686--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-ltr-vrl.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ justify-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="15">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="5">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 20px; bottom: 10px;" data-offset-y="0">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="-15">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: -20px; bottom: -10px;" data-offset-y="-20">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="15">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="5">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 20px; bottom: 10px;" data-offset-y="0">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="-15">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: -20px; bottom: -10px;" data-offset-y="-20">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-htb.htmlnew file mode 100644index 00000000000..bec5cd9aef4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-htb.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ justify-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: 10px; bottom: 20px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="top: 10px; bottom: 20px;" data-offset-y="5">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 10px; bottom: 20px;" data-offset-y="0">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 10px; bottom: 20px;" data-offset-y="-20">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -10px; bottom: -20px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -10px; bottom: -20px;" data-offset-y="-5">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: -10px; bottom: -20px;" data-offset-y="-40">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: 10px; bottom: 20px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="top: 10px; bottom: 20px;" data-offset-y="5">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 10px; bottom: 20px;" data-offset-y="0">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 10px; bottom: 20px;" data-offset-y="-20">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -10px; bottom: -20px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -10px; bottom: -20px;" data-offset-y="-5">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: -10px; bottom: -20px;" data-offset-y="-40">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-vrl.htmlnew file mode 100644index 00000000000..c4c0ca6c43c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-default-overflow-vrl-rtl-vrl.html@@ -0,0 +1,141 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 100px;+ height: 100px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ justify-self: center;+}++.inner {+ width: 20px;+ height: 20px;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: 10px; bottom: 20px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item" style="top: 10px; bottom: 20px;" data-offset-y="5">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 10px; bottom: 20px;" data-offset-y="0">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: 10px; bottom: 20px;" data-offset-y="-20">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -10px; bottom: -20px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item" style="top: -10px; bottom: -20px;" data-offset-y="-5">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item" style="top: -10px; bottom: -20px;" data-offset-y="-40">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>++<!-- RTL items. -->+<br>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: 10px; bottom: 20px;" data-offset-y="35">+ <div class="inner"></div>+ </div>+</div>++<!-- Overflows IMCB, but not CB. -->+<div class="container">+ <div class="item rtl" style="top: 10px; bottom: 20px;" data-offset-y="5">+ <div class="inner" style="height: 80px;"></div>+ </div>+</div>++<!-- Overflows weak CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 10px; bottom: 20px;" data-offset-y="0">+ <div class="inner" style="height: 95px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: 10px; bottom: 20px;" data-offset-y="-20">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -10px; bottom: -20px;" data-offset-y="45">+ <div class="inner"></div>+ </div>+</div>++<!-- No overflow, centered in IMCB. -->+<div class="container">+ <div class="item rtl" style="top: -10px; bottom: -20px;" data-offset-y="-5">+ <div class="inner" style="height: 120px;"></div>+ </div>+</div>++<!-- Overflows strong CB edge, shifted. -->+<div class="container">+ <div class="item rtl" style="top: -10px; bottom: -20px;" data-offset-y="-40">+ <div class="inner" style="height: 160px;"></div>+ </div>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vlr.htmlnew file mode 100644index 00000000000..3dcb48b99b5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vlr.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vrl.htmlnew file mode 100644index 00000000000..d6bc5879e38--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-ltr-vrl.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vlr.htmlnew file mode 100644index 00000000000..2cb672d559f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vlr.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vrl.htmlnew file mode 100644index 00000000000..89d272bcabb--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-htb-rtl-vrl.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-width="20" data-offset-x="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-width="20" data-offset-x="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-width="20" data-offset-x="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-width="40" data-offset-x="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-htb.htmlnew file mode 100644index 00000000000..4c753c3701d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-htb.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vlr.htmlnew file mode 100644index 00000000000..7ea668cf192--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vlr.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vrl.htmlnew file mode 100644index 00000000000..215a05e8cea--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-ltr-vrl.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-htb.htmlnew file mode 100644index 00000000000..a30aaeb7840--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-htb.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vlr.htmlnew file mode 100644index 00000000000..a8ae9a497ab--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vlr.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vrl.htmlnew file mode 100644index 00000000000..34e4ab7d489--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vlr-rtl-vrl.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-htb.htmlnew file mode 100644index 00000000000..412fafcd0c5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-htb.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vlr.htmlnew file mode 100644index 00000000000..522014b04a1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vlr.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vrl.htmlnew file mode 100644index 00000000000..1da377443bf--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-ltr-vrl.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-htb.htmlnew file mode 100644index 00000000000..d57bdfcae6b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-htb.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: horizontal-tb;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vlr.htmlnew file mode 100644index 00000000000..fb9d733372a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vlr.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-lr;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vrl.htmlnew file mode 100644index 00000000000..1cbf65059e4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/justify-self-vrl-rtl-vrl.html@@ -0,0 +1,126 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: rtl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ writing-mode: vertical-rl;+ direction: ltr;+ position: absolute;+ background: green;+ inset: 0;+}++.item::before {+ width: 20px;+ height: 20px;+ content: '';+ display: block;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-start;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: self-end;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>++<!-- RTL -->+<br>++<div class="container">+ <div class="item rtl" style="justify-self: start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: center;" data-expected-height="20" data-offset-y="10"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: baseline;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: last baseline;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-start;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: self-end;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: left;" data-expected-height="20" data-offset-y="0"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: right;" data-expected-height="20" data-offset-y="20"></div>+</div>++<div class="container">+ <div class="item rtl" style="justify-self: stretch;" data-expected-height="40" data-offset-y="0"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-align-self-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-align-self-vlr.htmlnew file mode 100644index 00000000000..1cf53c3308f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-align-self-vlr.html@@ -0,0 +1,149 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ position: absolute;+ background: green;+ inset: 5px;+ margin: 10px;+ width: 30px;+ height: 30px;+}++.safe {+ align-self: safe end;+}+.unsafe {+ align-self: unsafe end;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-x="15"></div>+</div>++<!-- UNSAFE -->+<br>++<div class="container">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-x="-5"></div>+</div>++<!-- RTL -->+<br>++<div class="container rtl">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-x="15"></div>+</div>++<!-- UNSAFE RTL -->+<br>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-x="-5"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-align-self-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-align-self-vrl.htmlnew file mode 100644index 00000000000..b3c645f2f44--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-align-self-vrl.html@@ -0,0 +1,149 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ position: absolute;+ background: green;+ inset: 5px;+ margin: 10px;+ width: 30px;+ height: 30px;+}++.safe {+ align-self: safe end;+}+.unsafe {+ align-self: unsafe end;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-x="-5"></div>+</div>++<!-- UNSAFE -->+<br>++<div class="container">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-x="15"></div>+</div>++<!-- RTL -->+<br>++<div class="container rtl">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-x="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-x="-5"></div>+</div>++<!-- UNSAFE RTL -->+<br>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-x="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-x="15"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-justify-self-vlr.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-justify-self-vlr.htmlnew file mode 100644index 00000000000..eef41f55a08--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-justify-self-vlr.html@@ -0,0 +1,149 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-lr;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ position: absolute;+ background: green;+ inset: 5px;+ margin: 10px;+ width: 30px;+ height: 30px;+}++.safe {+ justify-self: safe end;+}+.unsafe {+ justify-self: unsafe end;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-y="15"></div>+</div>++<!-- UNSAFE -->+<br>++<div class="container">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-y="-5"></div>+</div>++<!-- RTL -->+<br>++<div class="container rtl">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-y="-5"></div>+</div>++<!-- UNSAFE RTL -->+<br>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-y="15"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-justify-self-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-justify-self-vrl.htmlnew file mode 100644index 00000000000..c8991ed0aa6--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/safe-justify-self-vrl.html@@ -0,0 +1,149 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ direction: ltr;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 40px;+ height: 40px;+}++.item {+ position: absolute;+ background: green;+ inset: 5px;+ margin: 10px;+ width: 30px;+ height: 30px;+}++.safe {+ justify-self: safe end;+}+.unsafe {+ justify-self: unsafe end;+}++.rtl {+ direction: rtl;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<div class="container">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container">+ <div class="item safe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-y="15"></div>+</div>++<!-- UNSAFE -->+<br>++<div class="container">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-y="-5"></div>+</div>++<!-- RTL -->+<br>++<div class="container rtl">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-y="-5"></div>+</div>++<div class="container rtl">+ <div class="item safe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-y="-5"></div>+</div>++<!-- UNSAFE RTL -->+<br>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: horizontal-tb; direction: rtl;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: veritcal-rl; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-rl; direction: rtl;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: ltr;" data-offset-y="15"></div>+</div>++<div class="container rtl">+ <div class="item unsafe" style="writing-mode: vertical-lr; direction: rtl;" data-offset-y="15"></div>+</div>+diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-htb-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-htb-vrl.htmlnew file mode 100644index 00000000000..9cf8553e3cd--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-htb-vrl.html@@ -0,0 +1,100 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: horizontal-tb;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 60px;+ height: 60px;+}++.item {+ writing-mode: vertical-rl;+ position: absolute;+ background: green;+ inset: 5px 10px 5px 10px;+}++.item::before {+ aspect-ratio: 1/1;+ min-width: 20px;+ min-height: 20px;+ width: 100%;+ height: 100%;+ content: '';+ display: block;+}++.ar {+ aspect-ratio: 1/1;+ min-width: 20px;+ min-height: 20px;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<body>++<div class="container">+ <div class="item" style="justify-self: start; align-self: start;" data-expected-width="20" data-expected-height="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch; align-self: start;" data-expected-width="40" data-expected-height="40"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: start; align-self: stretch;" data-expected-width="50" data-expected-height="50"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></div>+</div>++<br>++<div class="container">+ <div class="item ar" style="justify-self: start; align-self: start;" data-expected-width="20" data-expected-height="20"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: stretch; align-self: start;" data-expected-width="40" data-expected-height="40"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: start; align-self: stretch;" data-expected-width="50" data-expected-height="50"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></div>+</div>++<br>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: start; align-self: start;" data-expected-width="10" data-expected-height="10"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: stretch; align-self: start;" data-expected-width="40" data-expected-height="40"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: start; align-self: stretch;" data-expected-width="50" data-expected-height="50"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></canvas>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.htmlnew file mode 100644index 00000000000..dac2a0896c4--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-htb.html@@ -0,0 +1,100 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 60px;+ height: 60px;+}++.item {+ writing-mode: horizontal-tb;+ position: absolute;+ background: green;+ inset: 5px 10px 5px 10px;+}++.item::before {+ aspect-ratio: 1/1;+ min-width: 20px;+ min-height: 20px;+ width: 100%;+ height: 100%;+ content: '';+ display: block;+}++.ar {+ aspect-ratio: 1/1;+ min-width: 20px;+ min-height: 20px;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<body>++<div class="container">+ <div class="item" style="justify-self: start; align-self: start;" data-expected-width="20" data-expected-height="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch; align-self: start;" data-expected-width="50" data-expected-height="50"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: start; align-self: stretch;" data-expected-width="40" data-expected-height="40"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></div>+</div>++<br>++<div class="container">+ <div class="item ar" style="justify-self: start; align-self: start;" data-expected-width="20" data-expected-height="20"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: stretch; align-self: start;" data-expected-width="50" data-expected-height="50"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: start; align-self: stretch;" data-expected-width="40" data-expected-height="40"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></div>+</div>++<br>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: start; align-self: start;" data-expected-width="10" data-expected-height="10"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: stretch; align-self: start;" data-expected-width="50" data-expected-height="50"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: start; align-self: stretch;" data-expected-width="40" data-expected-height="40"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></canvas>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.html b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.htmlnew file mode 100644index 00000000000..53c3dd1dcc5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-align/abspos/stretch-intrinsic-size-vrl-vrl.html@@ -0,0 +1,100 @@+<!DOCTYPE html>+<link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos">+<link rel="help" href="https://drafts.csswg.org/css-align-3/#justify-abspos">+<style>+body {+ margin: 0;+}++.container {+ writing-mode: vertical-rl;+ display: inline-block;+ position: relative;+ margin: 20px;+ border: solid 4px;+ width: 60px;+ height: 60px;+}++.item {+ writing-mode: vertical-rl;+ position: absolute;+ background: green;+ inset: 5px 10px 5px 10px;+}++.item::before {+ aspect-ratio: 1/1;+ min-width: 20px;+ min-height: 20px;+ width: 100%;+ height: 100%;+ content: '';+ display: block;+}++.ar {+ aspect-ratio: 1/1;+ min-width: 20px;+ min-height: 20px;+}+</style>+<script src="../../../resources/testharness.js"></script>+<script src="../../../resources/testharnessreport.js"></script>+<script src="../../../resources/check-layout-th.js"></script>++<body onload="checkLayout('.item')">++<body>++<div class="container">+ <div class="item" style="justify-self: start; align-self: start;" data-expected-width="20" data-expected-height="20"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch; align-self: start;" data-expected-width="50" data-expected-height="50"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: start; align-self: stretch;" data-expected-width="40" data-expected-height="40"></div>+</div>++<div class="container">+ <div class="item" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></div>+</div>++<br>++<div class="container">+ <div class="item ar" style="justify-self: start; align-self: start;" data-expected-width="20" data-expected-height="20"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: stretch; align-self: start;" data-expected-width="50" data-expected-height="50"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: start; align-self: stretch;" data-expected-width="40" data-expected-height="40"></div>+</div>++<div class="container">+ <div class="item ar" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></div>+</div>++<br>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: start; align-self: start;" data-expected-width="10" data-expected-height="10"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: stretch; align-self: start;" data-expected-width="50" data-expected-height="50"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: start; align-self: stretch;" data-expected-width="40" data-expected-height="40"></canvas>+</div>++<div class="container">+ <canvas width="10" height="10" class="item" style="justify-self: stretch; align-self: stretch;" data-expected-width="40" data-expected-height="50"></canvas>+</div>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.htmlnew file mode 100644index 00000000000..de1b67e66f5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001.html@@ -0,0 +1,180 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit with orthogonal children</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit with orthogonal children">+<meta name="flags" content="ahem dom combo">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>1: Shrink-to-fit inline-block with a child of orthogonal block</h3>+<div class="test">+ <div class="inline-block"><div class="target">HH</div></div><span class="next">ZZ</span>+</div>+<h3>2: Shrink-to-fit inline-block with a child of orthogonal inline</h3>+<div class="test">+ <div class="inline-block"><span class="target">HH</span></div><span class="next">ZZ</span>+</div>+<h3>3: Shrink-to-fit inline-block with a child of orthogonal block with borders</h3>+<div class="test">+ <div class="inline-block"><div class="target border">HHH</div></div><span class="next">ZZ</span>+</div>+<h3>4: Shrink-to-fit inline-block with a child of orthogonal inline with borders</h3>+<div class="test">+ <div class="inline-block"><span class="target border">HHH</span></div><span class="next">ZZ</span>+</div>+<h3>5: Shrink-to-fit inline-block with a child of orthogonal block in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><div class="target">HH</div></div></div><span class="next">ZZ</span>+</div>+<h3>6: Shrink-to-fit inline-block with a child of orthogonal inline in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><span class="target">HH</span></div></div><span class="next">ZZ</span>+</div>+<h3>7: Shrink-to-fit inline-block with a child of orthogonal block with borders in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><div class="target border">HHH</div></div></div><span class="next">ZZ</span>+</div>+<h3>8: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><span class="target border">HHH</span></div></div><span class="next">ZZ</span>+</div>+<h3>9: Shrink-to-fit float with a child of orthogonal block</h3>+<div class="test">+ <div class="float"><div class="target">HH</div></div><span class="next">ZZ</span>+</div>+<h3>10: Shrink-to-fit float with a child of orthogonal inline</h3>+<div class="test">+ <div class="float"><span class="target">HH</span></div><span class="next">ZZ</span>+</div>+<h3>11: Shrink-to-fit float with a child of orthogonal block with borders</h3>+<div class="test">+ <div class="float"><div class="target border">HHH</div></div><span class="next">ZZ</span>+</div>+<h3>12: Shrink-to-fit float with a child of orthogonal inline with borders</h3>+<div class="test">+ <div class="float"><span class="target border">HHH</span></div><span class="next">ZZ</span>+</div>+<h3>13: Shrink-to-fit float with a child of orthogonal block in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><div class="target">HH</div></div></div><span class="next">ZZ</span>+</div>+<h3>14: Shrink-to-fit float with a child of orthogonal inline in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><span class="target">HH</span></div></div><span class="next">ZZ</span>+</div>+<h3>15: Shrink-to-fit float with a child of orthogonal block with borders in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><div class="target border">HHH</div></div></div><span class="next">ZZ</span>+</div>+<h3>16: Shrink-to-fit float with a child of orthogonal inline with borders in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><span class="target border">HHH</span></div></div><span class="next">ZZ</span>+</div>+<h3>17: Shrink-to-fit table-cell with a child of orthogonal block</h3>+<div class="test">+ <table><tr><td><div class="target">HH</div></td><td class="next">ZZ</td></tr></table>+</div>+<h3>18: Shrink-to-fit table-cell with a child of orthogonal inline</h3>+<div class="test">+ <table><tr><td><span class="target">HH</span></td><td class="next">ZZ</td></tr></table>+</div>+<h3>19: Shrink-to-fit table-cell with a child of orthogonal block with borders</h3>+<div class="test">+ <table><tr><td><div class="target border">HHH</div></td><td class="next">ZZ</td></tr></table>+</div>+<h3>20: Shrink-to-fit table-cell with a child of orthogonal inline with borders</h3>+<div class="test">+ <table><tr><td><span class="target border">HHH</span></td><td class="next">ZZ</td></tr></table>+</div>+<h3>21: Shrink-to-fit table-cell with a child of orthogonal block in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><div class="target">HH</div></div></td><td class="next">ZZ</td></tr></table>+</div>+<h3>22: Shrink-to-fit table-cell with a child of orthogonal inline in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><span class="target">HH</span></div></td><td class="next">ZZ</td></tr></table>+</div>+<h3>23: Shrink-to-fit table-cell with a child of orthogonal block with borders in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><div class="target border">HHH</div></div></td><td class="next">ZZ</td></tr></table>+</div>+<h3>24: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><span class="target border">HHH</span></div></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001a.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001a.htmlnew file mode 100644index 00000000000..3da25e60f10--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001a.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit inline-block with a child of orthogonal block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit inline-block with a child of orthogonal block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>1: Shrink-to-fit inline-block with a child of orthogonal block</h3>+<div class="test">+ <div class="inline-block"><div class="target">HH</div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001b.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001b.htmlnew file mode 100644index 00000000000..6f5e99c2a1b--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001b.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit inline-block with a child of orthogonal inline</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit inline-block with a child of orthogonal inline">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>2: Shrink-to-fit inline-block with a child of orthogonal inline</h3>+<div class="test">+ <div class="inline-block"><span class="target">HH</span></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001c.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001c.htmlnew file mode 100644index 00000000000..fc34d3e3bf6--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001c.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit inline-block with a child of orthogonal block with borders</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit inline-block with a child of orthogonal block with borders">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>3: Shrink-to-fit inline-block with a child of orthogonal block with borders</h3>+<div class="test">+ <div class="inline-block"><div class="target border">HHH</div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.htmlnew file mode 100644index 00000000000..a5bda0da226--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001d.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit inline-block with a child of orthogonal inline with borders</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit inline-block with a child of orthogonal inline with borders">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>4: Shrink-to-fit inline-block with a child of orthogonal inline with borders</h3>+<div class="test">+ <div class="inline-block"><span class="target border">HHH</span></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001e.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001e.htmlnew file mode 100644index 00000000000..61d9c296a08--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001e.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit inline-block with a child of orthogonal block in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit inline-block with a child of orthogonal block in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>5: Shrink-to-fit inline-block with a child of orthogonal block in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><div class="target">HH</div></div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001f.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001f.htmlnew file mode 100644index 00000000000..fe395e3f772--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001f.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit inline-block with a child of orthogonal inline in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit inline-block with a child of orthogonal inline in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>6: Shrink-to-fit inline-block with a child of orthogonal inline in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><span class="target">HH</span></div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001g.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001g.htmlnew file mode 100644index 00000000000..5a2a026a742--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001g.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit inline-block with a child of orthogonal block with borders in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit inline-block with a child of orthogonal block with borders in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>7: Shrink-to-fit inline-block with a child of orthogonal block with borders in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><div class="target border">HHH</div></div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.htmlnew file mode 100644index 00000000000..681702e3529--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001h.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>8: Shrink-to-fit inline-block with a child of orthogonal inline with borders in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><span class="target border">HHH</span></div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001i.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001i.htmlnew file mode 100644index 00000000000..f24068e7a56--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001i.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit float with a child of orthogonal block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit float with a child of orthogonal block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>9: Shrink-to-fit float with a child of orthogonal block</h3>+<div class="test">+ <div class="float"><div class="target">HH</div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001j.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001j.htmlnew file mode 100644index 00000000000..360a5b21480--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001j.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit float with a child of orthogonal inline</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit float with a child of orthogonal inline">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>10: Shrink-to-fit float with a child of orthogonal inline</h3>+<div class="test">+ <div class="float"><span class="target">HH</span></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001k.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001k.htmlnew file mode 100644index 00000000000..150db7a6cf7--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001k.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit float with a child of orthogonal block with borders</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit float with a child of orthogonal block with borders">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>11: Shrink-to-fit float with a child of orthogonal block with borders</h3>+<div class="test">+ <div class="float"><div class="target border">HHH</div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.htmlnew file mode 100644index 00000000000..c2c50759f75--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001l.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit float with a child of orthogonal inline with borders</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit float with a child of orthogonal inline with borders">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>12: Shrink-to-fit float with a child of orthogonal inline with borders</h3>+<div class="test">+ <div class="float"><span class="target border">HHH</span></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001m.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001m.htmlnew file mode 100644index 00000000000..1260af612b9--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001m.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit float with a child of orthogonal block in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit float with a child of orthogonal block in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>13: Shrink-to-fit float with a child of orthogonal block in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><div class="target">HH</div></div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001n.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001n.htmlnew file mode 100644index 00000000000..602f6af1b07--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001n.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit float with a child of orthogonal inline in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit float with a child of orthogonal inline in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>14: Shrink-to-fit float with a child of orthogonal inline in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><span class="target">HH</span></div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001o.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001o.htmlnew file mode 100644index 00000000000..648b8fc710a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001o.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit float with a child of orthogonal block with borders in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit float with a child of orthogonal block with borders in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>15: Shrink-to-fit float with a child of orthogonal block with borders in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><div class="target border">HHH</div></div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.htmlnew file mode 100644index 00000000000..91795687f9a--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001p.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit float with a child of orthogonal inline with borders in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit float with a child of orthogonal inline with borders in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>16: Shrink-to-fit float with a child of orthogonal inline with borders in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><span class="target border">HHH</span></div></div><span class="next">ZZ</span>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001q.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001q.htmlnew file mode 100644index 00000000000..16857390203--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001q.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit table-cell with a child of orthogonal block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit table-cell with a child of orthogonal block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>17: Shrink-to-fit table-cell with a child of orthogonal block</h3>+<div class="test">+ <table><tr><td><div class="target">HH</div></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001r.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001r.htmlnew file mode 100644index 00000000000..868f57f430c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001r.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit table-cell with a child of orthogonal inline</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit table-cell with a child of orthogonal inline">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>18: Shrink-to-fit table-cell with a child of orthogonal inline</h3>+<div class="test">+ <table><tr><td><span class="target">HH</span></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001s.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001s.htmlnew file mode 100644index 00000000000..4a2667e2688--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001s.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit table-cell with a child of orthogonal block with borders</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit table-cell with a child of orthogonal block with borders">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>19: Shrink-to-fit table-cell with a child of orthogonal block with borders</h3>+<div class="test">+ <table><tr><td><div class="target border">HHH</div></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.htmlnew file mode 100644index 00000000000..2dd340afa13--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001t.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit table-cell with a child of orthogonal inline with borders</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit table-cell with a child of orthogonal inline with borders">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>20: Shrink-to-fit table-cell with a child of orthogonal inline with borders</h3>+<div class="test">+ <table><tr><td><span class="target border">HHH</span></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001u.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001u.htmlnew file mode 100644index 00000000000..93ce26941ed--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001u.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit table-cell with a child of orthogonal block in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit table-cell with a child of orthogonal block in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>21: Shrink-to-fit table-cell with a child of orthogonal block in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><div class="target">HH</div></div></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001v.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001v.htmlnew file mode 100644index 00000000000..0ce8dce00dc--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001v.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit table-cell with a child of orthogonal inline in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit table-cell with a child of orthogonal inline in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>22: Shrink-to-fit table-cell with a child of orthogonal inline in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><span class="target">HH</span></div></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001w.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001w.htmlnew file mode 100644index 00000000000..9b1576aa243--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001w.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit table-cell with a child of orthogonal block with borders in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit table-cell with a child of orthogonal block with borders in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>23: Shrink-to-fit table-cell with a child of orthogonal block with borders in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><div class="target border">HHH</div></div></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.htmlnew file mode 100644index 00000000000..85ad5af06e1--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-001x.html@@ -0,0 +1,88 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block</title>+<link rel="help" href="http://www.w3.org/TR/css-writing-modes-3/#orthogonal-flows" title="7.3. Orthogonal Flows">+<meta name="assert" content="Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block">+<meta name="flags" content="ahem dom">+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-12-23 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. IE11 and Edge12 compute height to ICB height if+ not set. We want the test to focus exclusively on shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>24: Shrink-to-fit table-cell with a child of orthogonal inline with borders in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><span class="target border">HHH</span></div></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+promise_setup(() => document.fonts.ready);++if (window.location.search == "?wait") {+ console.log("Sleeping 5 secs for debug");+ setup({explicit_done:true});+ window.setTimeout(run, 5000);+} else {+ run();+}++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ promise_test(async function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-002.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-002.htmlnew file mode 100644index 00000000000..12c36c0d2aa--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/orthogonal-parent-shrink-to-fit-002.html@@ -0,0 +1,129 @@+<!DOCTYPE html>+<meta charset="utf-8">+<title>CSS Writing Modes Test: Shrink-to-fit with an orthogonal atomic inline child</title>+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-4/#orthogonal-flows" title="7.3. Orthogonal Flows">+<link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-contribution">+<meta name="assert" content="A shrink-to-fit box sized to an orthogonal atomic inline child uses that child's block-axis size as the child's intrinsic inline-size contribution.">+<meta name="flags" content="ahem dom combo">+<link rel="author" title="Karl Dubost" href="https://github.com/karlcow">+<!-- Companion to orthogonal-parent-shrink-to-fit-001.html, which covers orthogonal+ block and orthogonal inline children. This file covers the remaining case: an+ orthogonal ATOMIC INLINE child (display:inline-block), which reaches a separate+ intrinsic-width code path in some implementations.+ See https://bugs.webkit.org/show_bug.cgi?id=187454 -->+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<link rel="stylesheet" type="text/css" href="../../fonts/ahem.css" />+<style>+.test {+ border:thin solid;+ font:20px/1 Ahem;+}+.target {+ color:blue;+ height:3em; /* height: 3em is not required. It keeps the test focused+ exclusively on the shrink-to-fit algorithm. */+ writing-mode:vertical-rl;+}+.border {+ border-right:blue solid .5em;+}+.next {+ color:orange;+}+.inline-block {+ display:inline-block;+}+.float {+ float:left;+}+h3 {+ clear:both;+}+h3.fail {+ color:red;+}+table {+ border-spacing:0px;+}+td {+ padding:0px;+}+</style>+<div id="log"></div>+<div id="container">+<p>Test passes if the X-position of the <b>left</b> edge of the orange box and the <b>right</b> edge of the blue box are the same.+<p>If script is enabled, there should be one or more PASS and no FAIL.+<h3>1: Shrink-to-fit inline-block with a child of orthogonal atomic inline</h3>+<div class="test">+ <div class="inline-block"><span class="target inline-block">HH</span></div><span class="next">ZZ</span>+</div>+<h3>2: Shrink-to-fit inline-block with a child of orthogonal atomic inline with borders</h3>+<div class="test">+ <div class="inline-block"><span class="target inline-block border">HHH</span></div><span class="next">ZZ</span>+</div>+<h3>3: Shrink-to-fit inline-block with a child of orthogonal atomic inline in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><span class="target inline-block">HH</span></div></div><span class="next">ZZ</span>+</div>+<h3>4: Shrink-to-fit inline-block with a child of orthogonal atomic inline with borders in inline-block</h3>+<div class="test">+ <div class="inline-block"><div class="inline-block"><span class="target inline-block border">HHH</span></div></div><span class="next">ZZ</span>+</div>+<h3>5: Shrink-to-fit float with a child of orthogonal atomic inline</h3>+<div class="test">+ <div class="float"><span class="target inline-block">HH</span></div><span class="next">ZZ</span>+</div>+<h3>6: Shrink-to-fit float with a child of orthogonal atomic inline with borders</h3>+<div class="test">+ <div class="float"><span class="target inline-block border">HHH</span></div><span class="next">ZZ</span>+</div>+<h3>7: Shrink-to-fit float with a child of orthogonal atomic inline in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><span class="target inline-block">HH</span></div></div><span class="next">ZZ</span>+</div>+<h3>8: Shrink-to-fit float with a child of orthogonal atomic inline with borders in inline-block</h3>+<div class="test">+ <div class="float"><div class="inline-block"><span class="target inline-block border">HHH</span></div></div><span class="next">ZZ</span>+</div>+<h3>9: Shrink-to-fit table-cell with a child of orthogonal atomic inline</h3>+<div class="test">+ <table><tr><td><span class="target inline-block">HH</span></td><td class="next">ZZ</td></tr></table>+</div>+<h3>10: Shrink-to-fit table-cell with a child of orthogonal atomic inline with borders</h3>+<div class="test">+ <table><tr><td><span class="target inline-block border">HHH</span></td><td class="next">ZZ</td></tr></table>+</div>+<h3>11: Shrink-to-fit table-cell with a child of orthogonal atomic inline in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><span class="target inline-block">HH</span></div></td><td class="next">ZZ</td></tr></table>+</div>+<h3>12: Shrink-to-fit table-cell with a child of orthogonal atomic inline with borders in inline-block</h3>+<div class="test">+ <table><tr><td><div class="inline-block"><span class="target inline-block border">HHH</span></div></td><td class="next">ZZ</td></tr></table>+</div>+</div>+<script>+run();++function run() {+ Array.prototype.forEach.call(document.querySelectorAll(".test"), function (node) {+ var title = node.previousElementSibling.textContent;+ test(function () {+ try {+ var targetNode = node.querySelector(".target");+ var fontSize = parseFloat(getComputedStyle(targetNode).fontSize);+ var targetBounds = targetNode.getBoundingClientRect();+ assert_less_than_equal(targetBounds.width, fontSize * 2.01, "writing-mode is vertical")+ var nextNode = node.querySelector(".next");+ var nextBounds = nextNode.getBoundingClientRect();+ assert_equals(nextBounds.left - targetBounds.right, 0, "the left edge of the orange box touches the right edge of the blue box");+ } catch (e) {+ node.previousElementSibling.classList.add("fail");+ throw e;+ }+ }, title);+ });+ done();+}+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/text-orientation-parsing-001.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/text-orientation-parsing-001.htmlnew file mode 100644index 00000000000..16b45388eab--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/text-orientation-parsing-001.html@@ -0,0 +1,41 @@+<!DOCTYPE html>+<title>CSS Writing Modes: parsing text-orientation</title>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orientation">+<meta name="assert" content="This test asserts the parser and getComputedStyle works correctly for the text-orientation property.">+<meta name="flags" content="dom">+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>++<div+ data-expected="mixed" title="text-orientation initial value"></div>++<div style="text-orientation: upright"+ data-expected="upright"></div>+<div style="text-orientation: sideways"+ data-expected="sideways"></div>++<div style="text-orientation: upright">+ <div+ data-expected="upright" title="text-orientation should inherit"></div>++ <div style="text-orientation: mixed"+ data-expected="mixed"></div>++ <div style="text-orientation: initial"+ data-expected="mixed"></div>+ <div style="text-orientation: inherit"+ data-expected="upright"></div>++ <div style="text-orientation: foo"+ data-expected="upright"></div>+</div>++<script>+Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) {+ test(function () {+ var actual = getComputedStyle(element).textOrientation;+ assert_equals(actual, element.dataset.expected);+ }, element.title || element.getAttribute("style"));+});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/text-orientation-parsing-sideways-right-001.html b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/text-orientation-parsing-sideways-right-001.htmlnew file mode 100644index 00000000000..b53809745f0--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/css-writing-modes/text-orientation-parsing-sideways-right-001.html@@ -0,0 +1,20 @@+<!DOCTYPE html>+<title>CSS Writing Modes: parsing text-orientation</title>+<link rel="author" title="Koji Ishii" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orientation">+<meta name="assert" content="This test asserts the parser and getComputedStyle works correctly for the text-orientation property.">+<meta name="flags" content="dom may">+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>++<div style="text-orientation: sideways-right"+ data-expected="sideways"></div>++<script>+Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) {+ test(function () {+ var actual = getComputedStyle(element).textOrientation;+ assert_equals(actual, element.dataset.expected);+ }, element.title || element.getAttribute("style"));+});+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.htmlnew file mode 100644index 00000000000..96a985b0f08--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-ltr.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">+<div id="container" style="width:200px; height:200px; writing-mode:vertical-lr; direction:ltr;">+ <span id="target">target</span>+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=> {+ var elements = document.elementsFromPoint(15, 15);+ assert_equals(elements.length, 4);+ assert_equals(elements[0].id, "target");+ assert_equals(elements[1].id, "container");+ assert_equals(elements[2].nodeName, "BODY");+ assert_equals(elements[3].nodeName, "HTML");+ }, "elementsFromPoint should return all elements under a point");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.htmlnew file mode 100644index 00000000000..49a22f32c04--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vlr-rtl.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">+<div id="container" style="width:200px; height:200px; writing-mode:vertical-lr; direction:rtl;">+ <span id="target">target</span>+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=> {+ var elements = document.elementsFromPoint(15, 200);+ assert_equals(elements.length, 4);+ assert_equals(elements[0].id, "target");+ assert_equals(elements[1].id, "container");+ assert_equals(elements[2].nodeName, "BODY");+ assert_equals(elements[3].nodeName, "HTML");+ }, "elementsFromPoint should return all elements under a point");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-ltr.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-ltr.htmlnew file mode 100644index 00000000000..2cd0588548d--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-ltr.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">+<div id="container" style="width:200px; height:200px; writing-mode:vertical-rl; direction:ltr;">+ <span id="target">target</span>+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=> {+ var elements = document.elementsFromPoint(200, 15);+ assert_equals(elements.length, 4);+ assert_equals(elements[0].id, "target");+ assert_equals(elements[1].id, "container");+ assert_equals(elements[2].nodeName, "BODY");+ assert_equals(elements[3].nodeName, "HTML");+ }, "elementsFromPoint should return all elements under a point");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-rtl.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-rtl.htmlnew file mode 100644index 00000000000..616a8025bf5--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/elementsFromPoint-inline-vrl-rtl.html@@ -0,0 +1,18 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://www.w3.org/TR/cssom-view-1/#extensions-to-the-document-interface">+<div id="container" style="width:200px; height:200px; writing-mode:vertical-rl; direction:rtl;">+ <span id="target">target</span>+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=> {+ var elements = document.elementsFromPoint(200, 200);+ assert_equals(elements.length, 4);+ assert_equals(elements[0].id, "target");+ assert_equals(elements[1].id, "container");+ assert_equals(elements[2].nodeName, "BODY");+ assert_equals(elements[3].nodeName, "HTML");+ }, "elementsFromPoint should return all elements under a point");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vlr-ltr.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vlr-ltr.htmlnew file mode 100644index 00000000000..688acd2fe0f--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vlr-ltr.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-lr; direction:ltr;">+ <br id="child">+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=>{+ let r = document.getElementById("child").getClientRects()[0];+ assert_greater_than_equal(r.left, 0);+ assert_less_than(r.left, 50);+ assert_equals(r.top, 0);+ }, "Position of the BR element");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vlr-rtl.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vlr-rtl.htmlnew file mode 100644index 00000000000..102214a8bad--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vlr-rtl.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-lr; direction:rtl;">+ <br id="child">+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=>{+ let r = document.getElementById("child").getClientRects()[0];+ assert_greater_than_equal(r.left, 0);+ assert_less_than(r.left, 50);+ assert_equals(r.top, 100);+ }, "Position of the BR element");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vrl-ltr.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vrl-ltr.htmlnew file mode 100644index 00000000000..b1024ea0b94--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vrl-ltr.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-rl; direction:ltr;">+ <br id="child">+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=>{+ let r = document.getElementById("child").getClientRects()[0];+ assert_greater_than(r.left, 150);+ assert_less_than(r.left, 200);+ assert_equals(r.top, 0);+ }, "Position of the BR element");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vrl-rtl.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vrl-rtl.htmlnew file mode 100644index 00000000000..2f5c50a1dbe--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/getClientRects-br-vrl-rtl.html@@ -0,0 +1,16 @@+<!DOCTYPE html>+<link rel="author" title="Morten Stenshorne" href="[email protected]">+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-rl; direction:rtl;">+ <br id="child">+</div>+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>+<script>+ test(()=>{+ let r = document.getElementById("child").getClientRects()[0];+ assert_greater_than(r.left, 150);+ assert_less_than(r.left, 200);+ assert_equals(r.top, 100);+ }, "Position of the BR element");+</script>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.htmlnew file mode 100644index 00000000000..456fb8d019c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode-and-rtl-direction.html@@ -0,0 +1,113 @@+<!DOCTYPE html>+<title>CSSOM View - scrollIntoView considers vertical-lr and rtl direction</title>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width,initial-scale=1">+<link rel="author" title="Cathie Chen" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-element-scrollintoview">+<link rel="help" href="https://drafts.csswg.org/cssom-view/#scroll-an-element">+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>++<style>+.box {+ float: left;+ width: 200px;+ height: 200px;+}+#scroller {+ writing-mode: vertical-lr;+ direction: rtl;+ overflow: scroll;+ width: 300px;+ height: 300px;+}+#container{+ width: 600px;+ height: 600px;+}+#target {+ background-color: #ff0;+}+</style>+<body>+<div id="scroller">+ <div id="container">+ <!-- ROW-1 -->+ <div class="row">+ <div class="box"></div>+ <div class="box"></div>+ <div class="box"></div>+ </div>++ <!-- ROW-2 -->+ <div class="row">+ <div class="box"></div>+ <div class="box" id="target"></div>+ <div class="box"></div>+ </div>++ <!-- ROW-3 -->+ <div class="row">+ <div class="box"></div>+ <div class="box"></div>+ <div class="box"></div>+ </div>+ </div>+</div>++<script>+// In vertical-lr mode and rtl direction, X corresponds to the block axis+// and is oriented rightward. Y corresponds to the inline axis and is oriented+// upward. So the beginning edges are the bottom and left edges and the ending+// edges are the top and right edges.++// According to the spec, y be min(0, max(y, element padding edge height - element scrolling area height)).+// So y is nonpositive and decreases upward.++// This assumes that the horizontal scrollbar+// is on the bottom side and the vertical scrollbar is on the right side.++var target = document.getElementById("target");+var scroller = document.getElementById("scroller");+var scrollbar_width = scroller.offsetWidth - scroller.clientWidth;++var scroller_width = scroller.offsetWidth;+var scroller_height = scroller.offsetHeight;+var box_width = target.offsetWidth;+var box_height = target.offsetHeight;++var expectedX = {+ blockStart: box_width,+ blockCenter: (3*box_width - scroller_width)/2 + scrollbar_width/2,+ blockEnd: 2*box_width - scroller_width + scrollbar_width,+};++var expectedY = {+ inlineStart: -box_height,+ inlineCenter: -((3*box_height - scroller_height)/2) - scrollbar_width/2,+ inlineEnd: -(2*box_height - scroller_height) - scrollbar_width,+};++[+ [{block: "start", inline: "start"}, expectedX.blockStart, expectedY.inlineStart],+ [{block: "start", inline: "center"}, expectedX.blockStart, expectedY.inlineCenter],+ [{block: "start", inline: "end"}, expectedX.blockStart, expectedY.inlineEnd],+ [{block: "center", inline: "start"}, expectedX.blockCenter, expectedY.inlineStart],+ [{block: "center", inline: "center"}, expectedX.blockCenter, expectedY.inlineCenter],+ [{block: "center", inline: "end"}, expectedX.blockCenter, expectedY.inlineEnd],+ [{block: "end", inline: "start"}, expectedX.blockEnd, expectedY.inlineStart],+ [{block: "end", inline: "center"}, expectedX.blockEnd, expectedY.inlineCenter],+ [{block: "end", inline: "end"}, expectedX.blockEnd, expectedY.inlineEnd],+].forEach(([input, expectedX, expectedY]) => {+ test(() => {+ scroller.scrollTo(0, 0);+ target.scrollIntoView(input);+ assert_approx_equals(scroller.scrollLeft, expectedX, 0.5, "scrollX");+ assert_approx_equals(scroller.scrollTop, expectedY, 0.5, "scrollY");+ }, `scrollIntoView(${JSON.stringify(input)})`);+})++</script>++</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode.htmlnew file mode 100644index 00000000000..9a9b9b48ede--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-lr-writing-mode.html@@ -0,0 +1,108 @@+<!DOCTYPE html>+<title>CSSOM View - scrollIntoView considers vertical-lr writing mode</title>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width,initial-scale=1">+<link rel="author" title="Cathie Chen" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-element-scrollintoview">+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>++<style>+.box {+ float: left;+ width: 200px;+ height: 200px;+}+#scroller {+ writing-mode: vertical-lr;+ overflow: scroll;+ width: 300px;+ height: 300px;+}+#container{+ width: 600px;+ height: 600px;+}+#target {+ background-color: #ff0;+}+</style>+<body>+<div id="scroller">+ <div id="container">+ <!-- ROW-1 -->+ <div class="row">+ <div class="box"></div>+ <div class="box"></div>+ <div class="box"></div>+ </div>++ <!-- ROW-2 -->+ <div class="row">+ <div class="box"></div>+ <div class="box" id="target"></div>+ <div class="box"></div>+ </div>++ <!-- ROW-3 -->+ <div class="row">+ <div class="box"></div>+ <div class="box"></div>+ <div class="box"></div>+ </div>+ </div>+</div>++<script>+// In vertical-lr mode, X corresponds to the block axis and is oriented+// rightward. Y corresponds to the inline axis and is oriented downward.+// So the beginning edges are the top and left edges and the ending+// edges are the bottom and right edges.++// This assumes that the horizontal scrollbar is on the bottom side and+// the vertical scrollbar is on the right side.++var target = document.getElementById("target");+var scroller = document.getElementById("scroller");+var scrollbar_width = scroller.offsetWidth - scroller.clientWidth;++var scroller_width = scroller.offsetWidth;+var scroller_height = scroller.offsetHeight;+var box_width = target.offsetWidth;+var box_height = target.offsetHeight;++var expectedX = {+ blockStart: box_width,+ blockCenter: (3*box_width - scroller_width)/2 + (scrollbar_width/2),+ blockEnd: (2*box_width) - scroller_width + scrollbar_width,+};++var expectedY = {+ inlineStart: box_height,+ inlineCenter: ((3*box_height - scroller_height)/2) + (scrollbar_width/2),+ inlineEnd: ((2*box_height) - scroller_height) + scrollbar_width,+};++[+ [{block: "start", inline: "start"}, expectedX.blockStart, expectedY.inlineStart],+ [{block: "start", inline: "center"}, expectedX.blockStart, expectedY.inlineCenter],+ [{block: "start", inline: "end"}, expectedX.blockStart, expectedY.inlineEnd],+ [{block: "center", inline: "start"}, expectedX.blockCenter, expectedY.inlineStart],+ [{block: "center", inline: "center"}, expectedX.blockCenter, expectedY.inlineCenter],+ [{block: "center", inline: "end"}, expectedX.blockCenter, expectedY.inlineEnd],+ [{block: "end", inline: "start"}, expectedX.blockEnd, expectedY.inlineStart],+ [{block: "end", inline: "center"}, expectedX.blockEnd, expectedY.inlineCenter],+ [{block: "end", inline: "end"}, expectedX.blockEnd, expectedY.inlineEnd],+].forEach(([input, expectedX, expectedY]) => {+ test(() => {+ scroller.scrollTo(0, 0);+ target.scrollIntoView(input);+ assert_approx_equals(scroller.scrollLeft, expectedX, 0.5, "scrollX");+ assert_approx_equals(scroller.scrollTop, expectedY, 0.5, "scrollY");+ }, `scrollIntoView(${JSON.stringify(input)})`);+})++</script>++</body>+</html>diff --git a/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.html b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.htmlnew file mode 100644index 00000000000..054f9627e7c--- /dev/null+++ b/Tests/LibWeb/Text/input/wpt-import/css/cssom-view/scrollIntoView-vertical-rl-writing-mode.html@@ -0,0 +1,118 @@+<!DOCTYPE html>+<title>CSSOM View - scrollIntoView considers vertical-rl writing mode</title>+<meta charset="utf-8">+<meta name="viewport" content="width=device-width,initial-scale=1">+<link rel="author" title="Suneel Kota" href="mailto:[email protected]">+<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-element-scrollintoview">+<script src="../../resources/testharness.js"></script>+<script src="../../resources/testharnessreport.js"></script>++<style>+.box {+ float: left;+ width: 200px;+ height: 200px;+}+#scroller {+ writing-mode: vertical-rl;+ overflow: scroll;+ width: 300px;+ height: 300px;+}+#container{+ width: 600px;+ height: 600px;+}+#target {+ background-color: #ff0;+}+</style>+<body>+<div id="scroller">+ <div id="container">+ <!-- ROW-1 -->+ <div class="row">+ <div class="box"></div>+ <div class="box"></div>+ <div class="box"></div>+ </div>++ <!-- ROW-2 -->+ <div class="row">+ <div class="box"></div>+ <div class="box" id="target"></div>+ <div class="box"></div>+ </div>++ <!-- ROW-3 -->+ <div class="row">+ <div class="box"></div>+ <div class="box"></div>+ <div class="box"></div>+ </div>+ </div>+</div>++<script>+// In vertical-rl mode, X corresponds to the block axis and is oriented+// leftward. Y corresponds to the inline axis and is oriented downward.+// So the beginning edges are the top and right edges and the ending+// edges are the bottom and left edges.++// This assumes that the horizontal scrollbar is on the bottom side.++var target = document.getElementById("target");+var scroller = document.getElementById("scroller");+var scrollbar_width = scroller.offsetWidth - scroller.clientWidth;++var scroller_width = scroller.offsetWidth;+var scroller_height = scroller.offsetHeight;+var box_width = target.offsetWidth;+var box_height = target.offsetHeight;++var expectedX;+// If scroll bar is on the left side, scroller.scrollLeft won't get bigger than 0,+scroller.scrollLeft = scrollbar_width;+if (scroller.scrollLeft == 0) {+ expectedX = {+ blockStart: -box_width,+ blockCenter: -(((3*box_width - scroller_width)/2) + (scrollbar_width/2)),+ blockEnd: -(((2*box_width) - scroller_width) + scrollbar_width),+ };+} else {+ expectedX = {+ blockStart: -(box_width - scrollbar_width),+ blockCenter: -(((3*box_width - scroller_width)/2) + (scrollbar_width/2) - scrollbar_width),+ blockEnd: -((2*box_width) - scroller_width),+ };+}++var expectedY = {+ inlineStart: box_height,+ inlineCenter: ((3*box_height - scroller_height)/2) + (scrollbar_width/2),+ inlineEnd: ((2*box_height) - scroller_height) + scrollbar_width,+};++[+ [{block: "start", inline: "start"}, expectedX.blockStart, expectedY.inlineStart],+ [{block: "start", inline: "center"}, expectedX.blockStart, expectedY.inlineCenter],+ [{block: "start", inline: "end"}, expectedX.blockStart, expectedY.inlineEnd],+ [{block: "center", inline: "start"}, expectedX.blockCenter, expectedY.inlineStart],+ [{block: "center", inline: "center"}, expectedX.blockCenter, expectedY.inlineCenter],+ [{block: "center", inline: "end"}, expectedX.blockCenter, expectedY.inlineEnd],+ [{block: "end", inline: "start"}, expectedX.blockEnd, expectedY.inlineStart],+ [{block: "end", inline: "center"}, expectedX.blockEnd, expectedY.inlineCenter],+ [{block: "end", inline: "end"}, expectedX.blockEnd, expectedY.inlineEnd],+].forEach(([input, expectedX, expectedY]) => {+ test(() => {+ scroller.scrollTo(0, 0);+ target.scrollIntoView(input);+ assert_approx_equals(scroller.scrollLeft, expectedX, 0.5, "scrollX");+ assert_approx_equals(scroller.scrollTop, expectedY, 0.5, "scrollY");+ }, `scrollIntoView(${JSON.stringify(input)})`);+})++</script>++</body>+</html>