interop-accessibility icon indicating copy to clipboard operation
interop-accessibility copied to clipboard

<details> element is tabbable via keyboard but has a computed tabIndex of -1

Open giacomo-petri opened this issue 11 months ago • 1 comments

The <details> element remains focusable and operable via keyboard even when no <summary> is nested. Given this behavior, I would expect its computed tabIndex value to be 0. However, none of the major browsers expose it as such (all return -1).

I understand that WPT currently focuses on testing accessible names and roles, but considering there is an existing folder in WPT called "focus", it might be reasonable and feasible to include this scenario as well.

I've added a file in wpt/focus, but feel free to remove, update, or modify it if it's misplaced or if the approach is incorrect.

giacomo-petri avatar Feb 13 '25 12:02 giacomo-petri

Thank you @giacomo-petri.

Please see this related issue around adding keyboard testing utilities: https://github.com/web-platform-tests/interop-accessibility/issues/101.

rahimabdi avatar Feb 14 '25 23:02 rahimabdi