summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/box
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/CSS2/box
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/CSS2/box')
-rw-r--r--testing/web-platform/tests/css/CSS2/box/left-ltr-ref.xht14
-rw-r--r--testing/web-platform/tests/css/CSS2/box/left-rtl-ref.xht14
-rw-r--r--testing/web-platform/tests/css/CSS2/box/ltr-basic.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/box/ltr-ib.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/box/ltr-span-only-ib.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/box/ltr-span-only.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/box/right-ltr-ref.xht14
-rw-r--r--testing/web-platform/tests/css/CSS2/box/right-rtl-ref.xht14
-rw-r--r--testing/web-platform/tests/css/CSS2/box/rtl-basic.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/box/rtl-ib.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/box/rtl-linebreak-notref1.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/box/rtl-linebreak-notref2.xht16
-rw-r--r--testing/web-platform/tests/css/CSS2/box/rtl-linebreak-ref.xht15
-rw-r--r--testing/web-platform/tests/css/CSS2/box/rtl-linebreak.xht20
-rw-r--r--testing/web-platform/tests/css/CSS2/box/rtl-span-only-ib.xht17
-rw-r--r--testing/web-platform/tests/css/CSS2/box/rtl-span-only.xht17
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>