Closed Bug 2024687 Opened 2 months ago Closed 1 month ago

[wpt-sync] Sync PR 58577 - [reading-flow] Fix slotted node ordering in focus navigation

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 58577 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/58577
Details from upstream follow.

Peng Zhou <pengzhou@chromium.org> wrote:

[reading-flow] Fix slotted node ordering in focus navigation

Reading-flow traversal assumed items were direct flat-tree children of
the container. When nodes are assigned through non-container slots this
assumption breaks, producing incorrect focus navigation order and
accessibility child ordering for grid-order case in Shadow DOM.

Treat non-container slots as layout anchors when resolving reading-flow
items and ensure slotted nodes are mapped back to their container when
computing focus and accessibility order.

Bug: 452981723
Change-Id: I4e7642657914b8c4dc6ca802957cfde35f491edf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7659082
Reviewed-by: Mason Freed \<masonf@chromium.org>
Commit-Queue: Peng Zhou \<pengzhou@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1601836}

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 20 tests and 5 subtests

Status Summary

Firefox

OK : 1[GitHub] 20[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]
PASS: 5
FAIL: 7[GitHub] 43[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-24h2-debug, Gecko-windows11-32-24h2-opt, Gecko-windows11-64-24h2-debug, Gecko-windows11-64-24h2-opt]

Chrome

OK : 1
PASS: 4
FAIL: 3

Safari

OK : 1
FAIL: 7

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/dca6a5d06a2c https://hg.mozilla.org/integration/autoland/rev/d2d501fd7fa9 [wpt PR 58577] - [reading-flow] Fix slotted node ordering in focus navigation, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
You need to log in before you can comment on or make changes to this bug.