From 1043cc9d7b9331b904811bf2c52dfef81cf05135 Mon Sep 17 00:00:00 2001 From: Blink WPT Bot Date: Wed, 8 Nov 2023 08:29:46 +0000 Subject: [PATCH] Bug 1862032 [wpt PR 42811] - Revert recent changes to inheritance of direction and language for elements., a=testonly Automatic update from web-platform-tests Revert recent changes to inheritance of direction and language for elements. (#42811) This changes the way elements inherit the HTML concepts of direction and language to inherit from their parent, rather than from their shadow root's host. This matches the changes that I'm proposing in: https://github.com/whatwg/html/pull/9880 These changes are all behind flags that are slated to ship in M120: CSSPseudoDir for the direction changes and HTMLLangNewInheritance for the language changes. Bug: 576815, 1490711 Change-Id: I152d8e21e24e77c9359744019b3ab875c2a21727 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4984312 Reviewed-by: Di Zhang Commit-Queue: David Baron Cr-Commit-Position: refs/heads/main@{#1216286} Co-authored-by: L. David Baron -- wpt-commits: e873a33f5a8564beb3864cb779e0c774aa4816c7 wpt-pr: 42811 --- .../dom/elements/global-attributes/dir-shadow-35-ref.html | 2 +- .../dom/elements/global-attributes/dir-shadow-35.html | 2 +- .../dom/elements/global-attributes/dir-shadow-41-ref.html | 4 ++-- .../dom/elements/global-attributes/dir-shadow-41.html | 8 ++++---- .../global-attributes/lang-attribute-shadow.window.js | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-35-ref.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-35-ref.html index c4e9f8c70eb52..fdcc2657f3c88 100644 --- a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-35-ref.html +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-35-ref.html @@ -17,7 +17,7 @@

`dir=ltr` on a div in the shadow tree, text in the light tree

اختبر.
-

The HTML direction / computed CSS `direction` value for the span is: rtl / ltr.

+

The HTML direction / computed CSS `direction` value for the slot is: ltr / ltr.

diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-35.html b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-35.html index 0f2a7c882f80b..8d063f44e6398 100644 --- a/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-35.html +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/dir-shadow-35.html @@ -20,7 +20,7 @@

`dir=ltr` on a div in the shadow tree, text in the light tree

اختبر.
-

The HTML direction / computed CSS `direction` value for the span is:

+

The HTML direction / computed CSS `direction` value for the slot is:

diff --git a/testing/web-platform/tests/html/dom/elements/global-attributes/lang-attribute-shadow.window.js b/testing/web-platform/tests/html/dom/elements/global-attributes/lang-attribute-shadow.window.js index 9ed242df169c1..2a59a56c05fe8 100644 --- a/testing/web-platform/tests/html/dom/elements/global-attributes/lang-attribute-shadow.window.js +++ b/testing/web-platform/tests/html/dom/elements/global-attributes/lang-attribute-shadow.window.js @@ -45,13 +45,13 @@ const TESTS = [ `, }, { - title: "lang on slot inherits from shadow host", + title: "lang on slot inherits from parent", light_tree: `
`, shadow_tree: `
- +
`, },