From 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:33 +0200 Subject: Merging upstream version 125.0.1. Signed-off-by: Daniel Baumann --- .../global-attributes/dir-assorted.window.js | 5 ++-- .../dir-auto-dynamic-simple-dataChange.html | 31 ++++++++++++++++++++ .../dir-auto-dynamic-simple-ref.html | 13 +++++++++ .../dir-auto-dynamic-simple-replace.html | 32 +++++++++++++++++++++ .../dir-auto-dynamic-simple-textContent.html | 31 ++++++++++++++++++++ .../global-attributes/dir-shadow-41-ref.html | 2 +- .../global-attributes/dir-shadow-42-ref.html | 25 ++++++++++++++++ .../elements/global-attributes/dir-shadow-42.html | 33 ++++++++++++++++++++++ .../global-attributes/dir_auto-N-EN-ref.html | 6 ++-- .../elements/global-attributes/dir_auto-N-EN.html | 4 +-- 10 files changed, 174 insertions(+), 8 deletions(-) create mode 100644 testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-dataChange.html create mode 100644 testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-ref.html create mode 100644 testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-replace.html create mode 100644 testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-textContent.html create mode 100644 testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-42-ref.html create mode 100644 testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-42.html (limited to 'testing/web-platform/tests/html/dom/elements') diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-assorted.window.js b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-assorted.window.js index 0d4e4b82d9..2017269f0b 100644 --- a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-assorted.window.js +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-assorted.window.js @@ -90,10 +90,11 @@ for (const bdi_test of [ { markup: "", expected: "rtl", desc: "dir=rtl empty" }, { markup: "A", expected: "ltr", desc: "dir=auto with LTR contents" }, { markup: "\u05d0", expected: "rtl", desc: "dir=auto with RTL contents" }, - { markup: "", expected: "parent", desc: "dir=auto empty" }, + { markup: "", expected: "ltr", desc: "dir=auto empty" }, + { markup: "123", expected: "ltr", desc: "dir=auto numbers" }, { markup: "A", expected: "ltr", desc: "no dir attribute with LTR contents" }, { markup: "\u05d0", expected: "rtl", desc: "no dir attribute with RTL contents" }, - { markup: "", expected: "parent", desc: "no dir attribute empty" }, + { markup: "", expected: "ltr", desc: "no dir attribute empty" }, ]) { for (const parent_dir of [ "ltr", "rtl" ]) { test(() => { diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-dataChange.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-dataChange.html new file mode 100644 index 0000000000..ded136a3ae --- /dev/null +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-dataChange.html @@ -0,0 +1,31 @@ + + + +Dynamic changes with textContent and dir=auto + +
Test for elements with dir="auto" whose content changes between directional and neutral
+
abc
+
abc
+
abc
+
אבג
+
אבג
+
אבג
+
123
+
123
+
123
+ diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-ref.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-ref.html new file mode 100644 index 0000000000..5a9a2f2484 --- /dev/null +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-ref.html @@ -0,0 +1,13 @@ + + +Dynamic changes and dir=auto +
Test for elements with dir="auto" whose content changes between directional and neutral
+
xyz
+
ابج
+
456
+
xyz
+
ابج
+
456
+
xyz
+
ابج
+
456
diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-replace.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-replace.html new file mode 100644 index 0000000000..6d785f08b8 --- /dev/null +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-replace.html @@ -0,0 +1,32 @@ + + + +Dynamic changes with textContent and dir=auto + +
Test for elements with dir="auto" whose content changes between directional and neutral
+
abc
+
abc
+
abc
+
אבג
+
אבג
+
אבג
+
123
+
123
+
123
+ diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-textContent.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-textContent.html new file mode 100644 index 0000000000..3b644908ab --- /dev/null +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-simple-textContent.html @@ -0,0 +1,31 @@ + + + +Dynamic changes with textContent and dir=auto + +
Test for elements with dir="auto" whose content changes between directional and neutral
+
abc
+
abc
+
abc
+
אבג
+
אבג
+
אבג
+
123
+
123
+
123
+ diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-41-ref.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-41-ref.html index b52e08df20..79b844edbe 100644 --- a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-41-ref.html +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-41-ref.html @@ -18,7 +18,7 @@ span {border: 1px solid silver;}

`dir=rtl` on a div in the shadow tree, `dir=ltr` on the shadow host, no slotted text in the light or dark trees

-

The HTML direction / computed CSS `direction` value is: rtl / rtl (on the slot).

+

The HTML direction / computed CSS `direction` value is: ltr / ltr (on the slot).

diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-42-ref.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-42-ref.html new file mode 100644 index 0000000000..8ea1100246 --- /dev/null +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-42-ref.html @@ -0,0 +1,25 @@ + + + + +[dir] and shadow slots: dir=ltr on a div in the shadow tree, dir=rtl on the shadow host, no slotted text in the light or dark trees + + + + + + + + + +

`dir=ltr` on a div in the shadow tree, `dir=rtl` on the shadow host, no slotted text in the light or dark trees

+
+

The HTML direction / computed CSS `direction` value is: ltr / ltr (on the slot).

+ + + diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-42.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-42.html new file mode 100644 index 0000000000..b9697678cb --- /dev/null +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-42.html @@ -0,0 +1,33 @@ + + + + +[dir] and shadow slots: dir=ltr on a div in the shadow tree, dir=rtl on the shadow host, no slotted text in the light or dark trees + + + + + + + + + + + +

`dir=ltr` on a div in the shadow tree, `dir=rtl` on the shadow host, no slotted text in the light or dark trees

+
+

The HTML direction / computed CSS `direction` value is:

+ + + + + diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html index 0d938b2e16..496d699d73 100644 --- a/testing/web-platform/tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir_auto-N-EN-ref.html @@ -10,7 +10,7 @@ + If there is no strong character, as in this test, the direction defaults to LTR." />