github web-platform-tests/wpt merge_pr_47670

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
4 months ago

Fix dir=auto traversal exclusions to apply to assigned nodes in a slot.

This fixes Chromium code and web platform tests to match half of the
spec update in whatwg/html#10488 and
whatwg/html#10561 . Prior to this change (in
both spec and Chromium implementation) subtrees that were intended to be
excluded from dir=auto traversal were not being excluded if they were an
assigned node in a slot with dir=auto (which has a special traversal to
traverse in the order of the assigned nodes, despite the general
traversal being on the dom tree and not the flat tree).

This fix is behind the DirAutoFixSlotExclusions flag in case we need to
disable it.

This also updates the test for bdi elements to only check for bdi
elements in the HTML namespace.

Bug: 576815, 352191350
Change-Id: I58a3bef05d27ba83a7e6b8e34d7bba74a8e0a482
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5796604
Reviewed-by: Di Zhang dizhangg@chromium.org
Commit-Queue: David Baron dbaron@chromium.org
Cr-Commit-Position: refs/heads/main@{#1343841}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.