[wpt-sync] Sync PR 63172 - focus: Implement nextFocusable and previousFocusable.
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63172 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63172
Details from upstream follow.
Vladimir Levin <vmpstr@chromium.org> wrote:
focus: Implement nextFocusable and previousFocusable.
This adds nextFocusable and previousFocusable which relies on focus
controller.Bug: 565786176
Change-Id: I4a82b35974e7eb37b217eee955508d07543fdb93
Reviewed-on: https://chromium-review.googlesource.com/8465265
WPT-Export-Revision: 491ddcbb56b307410c9af647194c65ecfc89b7ad
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=99599
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 46 tests and 1 subtests
Status Summary
Firefox
OK : 1[GitHub] 46[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-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 2[GitHub] 44[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-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 47
Chrome
OK : 1
PASS: 1
FAIL: 1
Safari
OK : 1
FAIL: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /shadow-dom/focus-navigation/focus-with-negative-index.html [wpt.fyi]
- This is a regression test: After focusing negative tabindex-ed elements, focus moves in tree order.:
FAIL
- This is a regression test: After focusing negative tabindex-ed elements, focus moves in tree order.:
- /shadow-dom/focus-navigation/menu/tentative/focus-menu-elements.html [wpt.fyi]
- Focus navigation should skip over other menuitems in menubars.:
FAIL
- Focus navigation should skip over other menuitems in menubars.:
- /shadow-dom/focus-navigation/reading-flow/tentative/carousel-grid-order.html [wpt.fyi]
- Grid items in carousel should follow grid-order reading flow:
FAIL
- Grid items in carousel should follow grid-order reading flow:
- /shadow-dom/focus-navigation/reading-flow/tentative/flex-flow.html [wpt.fyi]
- Flex items in flexbox should follow flex-flow reading flow:
FAIL - Flex items in rtl flexbox should follow flex-flow reading flow:
FAIL - Flex items in vertical-lr flexbox should follow flex-flow reading flow:
FAIL
- Flex items in flexbox should follow flex-flow reading flow:
- /shadow-dom/focus-navigation/reading-flow/tentative/flex-visual-order.html [wpt.fyi]
- Flex items in row-reverse flexbox should follow flex-visual reading flow:
FAIL - Flex items in row-reverse rtl flexbox should follow flex-visual reading flow:
FAIL - Flex items in row-reverse and vertical-lr flexbox should follow flex-visual reading flow:
FAIL
- Flex items in row-reverse flexbox should follow flex-visual reading flow:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-auto-flow-reading-order.html [wpt.fyi]
- Grid items should follow grid-rows reading flow, but let reading-order can move item's focus order to the top.:
FAIL - Grid items should follow reading flow, mix of reading-order and order values.:
FAIL
- Grid items should follow grid-rows reading flow, but let reading-order can move item's focus order to the top.:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-columns.html [wpt.fyi]
- Grid items in grid template columns should follow grid-columns reading flow:
FAIL
- Grid items in grid template columns should follow grid-columns reading flow:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-across-scopes.html [wpt.fyi]
- Grid items in shadow host that is a display contents grid item:
FAIL
- Grid items in shadow host that is a display contents grid item:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-on-shadow-host.html [wpt.fyi]
- Grid items in shadow host with delegatesFocus:
FAIL - Grid items in shadow host without delegatesFocus:
FAIL
- Grid items in shadow host with delegatesFocus:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-pseudo-elements.html [wpt.fyi]
- Grid pseudo items are not focusable:
FAIL
- Grid pseudo items are not focusable:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-with-display-contents.html [wpt.fyi]
- Items in display contents are sorted in same grid container and are placed in the position where their first child resides.:
FAIL - Items in display contents are sorted in same grid container and are placed in the position where their first child resides. The display contents have tabindex and should be focusable.:
FAIL - Grid items are in nested display contents containers.:
FAIL
- Items in display contents are sorted in same grid container and are placed in the position where their first child resides.:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-with-iframe.html [wpt.fyi]
- Grid items are iframes.:
FAIL
- Grid items are iframes.:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-with-nested-grids.html [wpt.fyi]
- Grid items are not grid containers.:
FAIL - Grid items are grid containers.:
FAIL - Only has grid containers.:
FAIL
- Grid items are not grid containers.:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-with-popover.html [wpt.fyi]
- Popover is reading-flow item.:
FAIL - Popover is reading-flow item and reading-flow container.:
FAIL
- Popover is reading-flow item.:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-with-position-absolute.html [wpt.fyi]
- Items in position:absolute container are visited at the end of the focus sequence. reading-order can override DOM order.:
FAIL - Items that have position:absolute are visited at the end of the focus sequence, in DOM order.:
FAIL
- Items in position:absolute container are visited at the end of the focus sequence. reading-order can override DOM order.:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-with-position-fixed.html [wpt.fyi]
- Items in position:fixed container are visited at the end of the focus sequence. reading-order can override DOM order.:
FAIL - Items that have position:fixed are visited at the end of the focus sequence, in DOM order.:
FAIL
- Items in position:fixed container are visited at the end of the focus sequence. reading-order can override DOM order.:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order-with-slots.html [wpt.fyi]
- Slot assigned element is a grid with reading-flow.:
FAIL - Slot is a grid with reading-flow.:
FAIL - Slot is inside a grid container with reading-flow.:
FAIL - Slot is a grid with reading-flow inside a grid container with reading-flow.:
FAIL - Slot is not inside a shadow host.:
FAIL - Slot is a display contents inside a grid container.:
FAIL - Slot is a display block inside a grid container.:
FAIL
- Slot assigned element is a grid with reading-flow.:
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-order.html [wpt.fyi]
- Grid items with
orderproperty:FAIL - Grid items with
orderproperty and tabindex. Positive tabindex doesn't reorder reading flow item, but can affect its descendants.:FAIL - Items in display block are not in parent grid container.:
FAIL
- Grid items with
- /shadow-dom/focus-navigation/reading-flow/tentative/grid-rows.html [wpt.fyi]
- Grid items in grid template columns should follow grid-rows reading flow:
FAIL
- Grid items in grid template columns should follow grid-rows reading flow:
- /shadow-dom/focus-navigation/reading-flow/tentative/source-order-valid.html [wpt.fyi]
- Block elements. Focus should be in DOM tabindexed-order, but reading-order takes effect.:
FAIL - Block inline elements. Focus should be in DOM tabindexed-order, but reading-order takes effect.:
FAIL - Flex elements. Focus should be in DOM tabindexed-order, but reading-order takes effect.:
FAIL - Grid elements. Focus should be in DOM tabindexed-order, but reading-order takes effect.:
FAIL - Flow root elements. Focus should be in DOM tabindexed-order, but reading-order takes effect.:
FAIL
- Block elements. Focus should be in DOM tabindexed-order, but reading-order takes effect.:
- /shadow-dom/focus-navigation/tentative/focus-navigation-scroller-interactive-child.html [wpt.fyi]
- While focusing a keyboard-focusable scroller, adding interactive content should not cancel focusability:
FAIL
- While focusing a keyboard-focusable scroller, adding interactive content should not cancel focusability:
- /shadow-dom/focus-navigation/tentative/focus-scroller-layout-update.html [wpt.fyi]
- When checking that element is a scroller, layout information should be up to date.:
FAIL
- When checking that element is a scroller, layout information should be up to date.:
Description
•