Closed Bug 1901801 Opened 4 months ago Closed 4 months ago

[wpt-sync] Sync PR 46693 - Slot element with tabindex=0 that generates a box should be focusable

Categories

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

task

Tracking

()

RESOLVED FIXED
129 Branch
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 default display: contents) and has its tabindex attribute set to 0 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.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/055dd23eb974 [wpt PR 46693] - Slot element with tabindex=0 that generates a box should be focusable, a=testonly
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.