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.
What is the issue with the HTML Standard?
This comes from this Chromium bug: https://crbug.com/505045915
The HTML spec says about
: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.