Bug 1856682 [wpt PR 42315] - Fix :dir() selector and updates for dir=auto and descend...
commitd6eb24a5730f0bb1e21b8124663b54769a4b0171
authorL. David Baron <dbaron@chromium.org>
Wed, 18 Oct 2023 08:33:32 +0000 (18 08:33 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 26 Oct 2023 08:55:26 +0000 (26 08:55 +0000)
tree34d825be6e0241863e0c082ca12591f77d5f06f1
parent11b15867a2e01316c302d167ca7b20d44786f761
Bug 1856682 [wpt PR 42315] - Fix :dir() selector and updates for dir=auto and descendant directionality to consider non-HTML elements., a=testonly

Automatic update from web-platform-tests
Fix :dir() selector and updates for dir=auto and descendant directionality to consider non-HTML elements.

This changes behavior only when the CSSPseudoDir flag is enabled.

This is based on the proposed behavior described in:
https://github.com/whatwg/html/issues/3699#issuecomment-951423468
which is in the process of being specified in:
https://github.com/whatwg/html/pull/9554
https://github.com/whatwg/html/pull/9796
and on the behavior specified in:
https://drafts.csswg.org/selectors-4/#the-dir-pseudo

Bug: 576815
Change-Id: I57323aeda8850f382756cd36b3717d34e8911f5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4908695
Commit-Queue: David Baron <dbaron@chromium.org>
Reviewed-by: Di Zhang <dizhangg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1204886}

--

wpt-commits: 9c46bae54706a175a99a9f127a4a8065704c2cc2
wpt-pr: 42315
testing/web-platform/tests/html/dom/elements/global-attributes/dir-assorted.window.js
testing/web-platform/tests/html/dom/elements/global-attributes/dir-auto-dynamic-changes.window.js