diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:22:09 +0000 |
commit | 43a97878ce14b72f0981164f87f2e35e14151312 (patch) | |
tree | 620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/web-platform/tests/css/CSS2/box | |
parent | Initial commit. (diff) | |
download | firefox-upstream.tar.xz firefox-upstream.zip |
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/box')
16 files changed, 259 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/CSS2/box/left-ltr-ref.xht b/testing/web-platform/tests/css/CSS2/box/left-ltr-ref.xht new file mode 100644 index 0000000000..e37fd5a183 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/left-ltr-ref.xht @@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Reftest Reference</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + </head> + <body> + <div> + <span style="border: 2px solid; border-right-style: none; padding-left: 5px; margin-left: 30px;">One</span> + <br/> + <span style="border: 2px solid; border-left-style: none; padding-right: 10px; margin-right: 60px;">Two</span> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/left-rtl-ref.xht b/testing/web-platform/tests/css/CSS2/box/left-rtl-ref.xht new file mode 100644 index 0000000000..a5dce550ae --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/left-rtl-ref.xht @@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Reftest Reference</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + </head> + <body> + <div> + <span style="border: 2px solid; border-left-style: none; padding-right: 10px; margin-right: 60px;">One</span> + <br/> + <span style="border: 2px solid; border-right-style: none; padding-left: 5px; margin-left: 30px;">Two</span> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/ltr-basic.xht b/testing/web-platform/tests/css/CSS2/box/ltr-basic.xht new file mode 100644 index 0000000000..fb5a4a9670 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/ltr-basic.xht @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 1</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="left-ltr-ref.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div><span>One<br/>Two</span></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/ltr-ib.xht b/testing/web-platform/tests/css/CSS2/box/ltr-ib.xht new file mode 100644 index 0000000000..79a772437b --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/ltr-ib.xht @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 5</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="left-ltr-ref.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div><span>One<div></div>Two</span></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/ltr-span-only-ib.xht b/testing/web-platform/tests/css/CSS2/box/ltr-span-only-ib.xht new file mode 100644 index 0000000000..eefdc820a7 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/ltr-span-only-ib.xht @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 8</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="right-ltr-ref.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div class="r"><span class="l">One<div></div>Two</span></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/ltr-span-only.xht b/testing/web-platform/tests/css/CSS2/box/ltr-span-only.xht new file mode 100644 index 0000000000..7340bba732 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/ltr-span-only.xht @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 4</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="right-ltr-ref.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div class="r"><span class="l">One<br/>Two</span></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/right-ltr-ref.xht b/testing/web-platform/tests/css/CSS2/box/right-ltr-ref.xht new file mode 100644 index 0000000000..afb50f34dd --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/right-ltr-ref.xht @@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Reftest Reference</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + </head> + <body> + <div style="direction: rtl"> + <span style="border: 2px solid; border-right-style: none; padding-left: 5px; margin-left: 30px;">One</span> + <br/> + <span style="border: 2px solid; border-left-style: none; padding-right: 10px; margin-right: 60px;">Two</span> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/right-rtl-ref.xht b/testing/web-platform/tests/css/CSS2/box/right-rtl-ref.xht new file mode 100644 index 0000000000..e040387c7e --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/right-rtl-ref.xht @@ -0,0 +1,14 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Reftest Reference</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + </head> + <body> + <div style="direction: rtl"> + <span style="border: 2px solid; border-left-style: none; padding-right: 10px; margin-right: 60px;">One</span> + <br/> + <span style="border: 2px solid; border-right-style: none; padding-left: 5px; margin-left: 30px;">Two</span> + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/rtl-basic.xht b/testing/web-platform/tests/css/CSS2/box/rtl-basic.xht new file mode 100644 index 0000000000..5bb0a7f437 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/rtl-basic.xht @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 2</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="right-rtl-ref.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div class="r"><span>One<br/>Two</span></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/rtl-ib.xht b/testing/web-platform/tests/css/CSS2/box/rtl-ib.xht new file mode 100644 index 0000000000..4815b46f78 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/rtl-ib.xht @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 6</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="right-rtl-ref.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div class="r"><span>One<div></div>Two</span></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-notref1.xht b/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-notref1.xht new file mode 100644 index 0000000000..7467c001be --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-notref1.xht @@ -0,0 +1,16 @@ +<!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="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> + </head> + <body> + <div style="direction: rtl; width: 20em"> + <span style="border: 2px solid; border-left-style: none; border-right-style: none; padding-right: 10px; margin-right: 60px;">One</span> + <br/> + <span style="border: 2px solid; border-right-style: none; padding-left: 5px; margin-left: 30px;">Two</span> + Some long text that should make sure we line-wrap. If this didn't line-wrap, it should be longer. It really should. And there should be a black border to the left of "Two" above. + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-notref2.xht b/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-notref2.xht new file mode 100644 index 0000000000..231b0257db --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-notref2.xht @@ -0,0 +1,16 @@ +<!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="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> + </head> + <body> + <div style="direction: rtl; width: 20em"> + <span style="border: 2px solid; border-left-style: none; padding-right: 10px; margin-right: 60px;">One</span> + <br/> + <span style="border: 2px solid; border-right-style: none; border-left-style: none; padding-left: 5px; margin-left: 30px;">Two</span> + Some long text that should make sure we line-wrap. If this didn't line-wrap, it should be longer. It really should. And there should be a black border to the left of "Two" above. + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-ref.xht b/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-ref.xht new file mode 100644 index 0000000000..f73ac870ee --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/rtl-linebreak-ref.xht @@ -0,0 +1,15 @@ +<!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="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + </head> + <body> + <div style="direction: rtl; width: 20em"> + <span style="border: 2px solid; border-left-style: none; padding-right: 10px; margin-right: 60px;">One</span> + <br/> + <span style="border: 2px solid; border-right-style: none; padding-left: 5px; margin-left: 30px;">Two</span> + Some long text that should make sure we line-wrap. If this didn't line-wrap, it should be longer. It really should. And there should be a black border to the left of "Two" above. + </div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/rtl-linebreak.xht b/testing/web-platform/tests/css/CSS2/box/rtl-linebreak.xht new file mode 100644 index 0000000000..978f3e38e1 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/rtl-linebreak.xht @@ -0,0 +1,20 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 9</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="rtl-linebreak-ref.xht"/> + <link rel="mismatch" href="rtl-linebreak-notref1.xht"/> + <link rel="mismatch" href="rtl-linebreak-notref2.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + div.r { width: 20em; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div class="r"><span>One<br/>Two</span> Some long text that should make sure we line-wrap. If this didn't line-wrap, it should be longer. It really should. And there should be a black border to the left of "Two" above.</div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/rtl-span-only-ib.xht b/testing/web-platform/tests/css/CSS2/box/rtl-span-only-ib.xht new file mode 100644 index 0000000000..4976c62fca --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/rtl-span-only-ib.xht @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 7</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="left-rtl-ref.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div><span class="r">One<div></div>Two</span></div> + </body> +</html> diff --git a/testing/web-platform/tests/css/CSS2/box/rtl-span-only.xht b/testing/web-platform/tests/css/CSS2/box/rtl-span-only.xht new file mode 100644 index 0000000000..1445b29586 --- /dev/null +++ b/testing/web-platform/tests/css/CSS2/box/rtl-span-only.xht @@ -0,0 +1,17 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>CSS Test: Bidi box model test 3</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu"/> + <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#bidi-box-model"/> + <link rel="match" href="left-rtl-ref.xht"/> + <style type="text/css"><![CDATA[ + .r { direction: rtl; } + .l { direction: ltr; } + span { border: 2px solid; padding: 0 10px 0 5px; margin: 0 60px 0 30px; } + ]]></style> + </head> + <body> + <div><span class="r">One<br/>Two</span></div> + </body> +</html> |