Re: [csswg-drafts] Do we need :focus-visible-within ? (#3080)

There is a possibility that this could/should be addressed from the other direction. Currently, `:focus` is a selector that a shadow host can match when one of its shadow DOM children has `:focus` and not itself. However, the same is not true of `:focus-visible`...

<img width="1040" height="380" alt="Image" src="https://github.com/user-attachments/assets/0d82010b-b7aa-476d-b19f-fd10e2067d61" />

Should the process by which the `:focus` selector matches the shadow host be applied to `:focus-visible`? What wasn't it?

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


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

Received on Thursday, 2 April 2026 13:22:52 UTC