Re: [csswg-drafts] [selectors] :focus-visible and Shadow DOM (#5893)

In any case, by design `:focus-visible` is not guaranteed to match when an element is focused, so at best it would be a way to heuristically detect that something maybe-probably has a shadow root.

Compared with the user harm from authors disabling focus styling, which is the problem `:focus-visible` is intended to solve, detecting that something might have a shadow root seems like it's at the opposite extreme of the priority of constituencies.

-- 
GitHub Notification of comment by alice
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5893#issuecomment-774774753 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 7 February 2021 21:53:57 UTC