[wpt-sync] Sync PR 36851 - Reland "Implement new dialog shadow focus behavior"
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox108 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 36851 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/36851
Details from upstream follow.
Joey Arhar <jarhar@chromium.org> wrote:
Reland "Implement new dialog shadow focus behavior"
This implements the new dialog initial focus behavior specified in these
changes:
https://github.com/whatwg/html/pull/7079
https://github.com/whatwg/html/pull/7284
https://github.com/whatwg/html/pull/7361
https://github.com/whatwg/html/pull/8174The gist of the changes are:
- Use the DOM tree instead of the flat tree to search for an element to
give initial focus.- Don't traverse into shadow roots when looking for elements to give
initial focus unless the shadow root has delegatesFocus.This will stay experimental until I have also made the other changes for
dialog initial focus: https://github.com/whatwg/html/pull/8199
After those changes have been made as well, I will carefully enable the
flag by default.Fixed: 383230, 670130, 1292852
Change-Id: If024ab0f22716c55b439e44b2298e39897ee844eReviewed-on: https://chromium-review.googlesource.com/4009903
WPT-Export-Revision: d9045e31382f4b516e47c03c991f9666c7ad9ef2
| Assignee | ||
Updated•3 years ago
|
| Assignee | ||
Comment 1•3 years ago
|
||
| Assignee | ||
Comment 3•3 years ago
|
||
Comment 4•3 years ago
|
||
| bugherder | ||
Description
•