[wpt-sync] Sync PR 46693 - Slot element with tabindex=0 that generates a box should be focusable
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox129 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 46693 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/46693
Details from upstream follow.
Nathan Knowler <nathan@knowler.dev> wrote:
Slot element with tabindex=0 that generates a box should be focusable
In Chromium, the
<slot>
element that is generating a box (i.e. overriding the defaultdisplay: contents
) and has itstabindex
attribute set to0
in this structure cannot be focused by tabbing. In Safari and Firefox, this works fine.<div> <template shadowrootmode=open> <slot tabindex=0 style="display: inline-block;"></slot> </template> Content </div>
I’ve started creating a failing test for this, but I’m going to need some help fixing it as I can’t get it to not timeout. I’ve borrowing utilities from other tests in the same
/shadow-dom/focus/
directory as well loosing following some of the other tests.If this seems like expected behaviour I’ll follow up with a bug report to Chromium, otherwise, I’ll file bug reports for Safari and Firefox.
Assignee | ||
Updated•4 months ago
|
Assignee | ||
Comment 1•4 months ago
|
||
Assignee | ||
Comment 2•4 months ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 1 subtests
Status Summary
Firefox
OK
: 1
PASS
: 1
Chrome
OK
: 1
FAIL
: 1
Safari
OK
: 1
PASS
: 1
Links
Comment 4•4 months ago
|
||
bugherder |
Description
•