Bug 1685974 [wpt PR 27125] - Fix the updating dir=auto issue when inserting text...
commit38f98be0ed10dc68990f57d82567aba49767eaaa
authorMiyoung Shin <myid.shin@igalia.com>
Tue, 2 Feb 2021 09:11:38 +0000 (2 09:11 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Tue, 2 Feb 2021 17:07:54 +0000 (2 17:07 +0000)
tree6937d15e1acda41996de19486c64309b3cc56fd3
parent32d9b61616aa12e4c580787dd03443b84e22f53e
Bug 1685974 [wpt PR 27125] - Fix the updating dir=auto issue when inserting text into a display:none, a=testonly

Automatic update from web-platform-tests
Fix the updating dir=auto issue when inserting text into a display:none

This CL fixes the issue of updating dir=auto when inserting text
into a display:none subtree by moving the
SelfOrAncestorHasDirAutoAttribute flag from ComputedStyle to Node,
and updates the flag of all descendants when dir attribute is changed
from/to auto and the child is inserted.

Bug: 576815
Change-Id: I229aa3df0720572df011e29da90d70a87d073bc4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617169
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Reviewed-by: Mason Freed <masonfreed@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
Cr-Commit-Position: refs/heads/master@{#847591}

--

wpt-commits: 60d6e8d8a3d9f7df7dfb06f666202c959efe71f9
wpt-pr: 27125
testing/web-platform/tests/css/selectors/selectors-dir-selector-auto-direction-change-001.html [new file with mode: 0644]