Bug 1858983 [wpt PR 42532] - Fix case of incorrect removal of dir=auto state in HTMLE...
commit136c41d422c17d3edbae349d49aef2174cf97009
authorL. David Baron <dbaron@chromium.org>
Wed, 18 Oct 2023 09:49:42 +0000 (18 09:49 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Thu, 26 Oct 2023 08:58:33 +0000 (26 08:58 +0000)
treecdd2af947ae9b315a8007bfb8469886448f8300e
parent5e795b48d912f912cf01d7fbc23dbdb4553fb69a
Bug 1858983 [wpt PR 42532] - Fix case of incorrect removal of dir=auto state in HTMLElement::OnDirAttrChanged., a=testonly

Automatic update from web-platform-tests
Fix case of incorrect removal of dir=auto state in HTMLElement::OnDirAttrChanged.

When a dir=auto attribute is removed, we might still need to be in the
ancestor-or-self-has-dir-auto state because of an ancestor.  This state
is needed to know when we need to handle auto direction changes for
dynamic changes to text.

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

--

wpt-commits: d4808a74fcbedff8c1028a3f9a845bc84b83392e
wpt-pr: 42532
testing/web-platform/tests/html/dom/elements/global-attributes/dir-assorted.window.js