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

> > @i-am-the-slime I _believe_ this is now possible using `:host(:has(:focus-visible)) svg { ... }`. Haven't tried it yet though.
> 
> Sadly, `:has()` does not work in Firefox by default, so this isn't a feasible solution for me. 😭
> 
> I think having a `:focus-visible-within` selector would be tremendously helpful!!!

But `:has()` is shipping by default in 2 of 3 engines, and is part of Interop 2023 - it is going to be universal comparatively soon.  At that point, is there a remaining gap in what you can express (if it feels still slightly a little clunkier to express)?  Or is it just sugar on that that you're asking for?



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


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

Received on Tuesday, 7 March 2023 19:29:25 UTC