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

So this behavior was part of all the `delegatesFocus` stuff (which I haven't followed that closely). Firefox doesn't implement it yet.

The general idea behind this behavior, IIRC, is that it's a bit weird that `.activeElement` does retarget but you can still observe the shadow state by checking `:focus`.

But if you use an internal pseudo-class and change the computed style as a result, doesn't it defeat the purpose?

I might be misremembering some other more compelling reason for this behavior?

cc @annevk @rniwa 

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


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

Received on Tuesday, 2 February 2021 01:17:22 UTC