Skip to content

Does the "shadow root" concept include UA shadow roots? #12404

@mfreed7

Description

@mfreed7

What is the issue with the HTML Standard?

This comes from this Chromium bug: https://crbug.com/505045915

The HTML spec says about :focus:

an element has the focus when:
...
its shadow root shadowRoot is not null and shadowRoot is the root of at least one element that has the focus.

The question is: does that apply to elements that have user agent shadow roots? E.g. <input>, <audio>, <video>, etc.?

Here's a test page, taken from the Chromium bug:

There are some interesting differences between browsers. It seems to me that the correct behavior would be to honor UA shadow roots for :focus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: shadowRelates to shadow trees (as defined in DOM)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions