Re: [csswg-drafts] [selectors-4] Introduce :popovertarget-open pseudo class (#9547)

Hmm @nt1m your function selector is probably a much better idea than my pseudo element one (especially because pseudo elements don't currently work in :has()).

I do feel like some way to select in css is needed though. Because it's common for playpause buttons for example to change their appearance based on state and that would currently rely on a specific Dom structure and has().

But as you say it would be quite picky with regards to invalidation.

Could we potentially flip the idea?

`#popover:popover-open:invoker()` or `#popover:popover-open::invoker`

Would this simplify things?

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


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

Received on Friday, 3 November 2023 11:49:40 UTC