Skip to content

In Shadow DOM v1, tabIndex=-1 makes all elements inside the shadow tree to be no tab-focusable #774

@hugoholgersson

Description

@hugoholgersson

An inconsistency in Shadow DOM v1 has started to confuse web developers:

From crbug.com/906729:

... it seems that there is a spec bug now. tabindex -1 behaves differently on a non-Custom Element (like a <div>) than it does on a Custom Element.

Custom Element: tabIndex -1 removes "tab focusability" for everything inside the custom element.
A [scrollable] <div>: tabIndex -1 removes "tab focusability" for the [scrollable] <div> itself but not its content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions