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

> cc @keithamus if you have ideas of what can be done here.
> 
> @nt1m I would think :has(:popover-open) + a certain DOM structure makes this possible. Having something more generic for invokers would require a precise definition.

We shouldn't have to rely on adding the elements next to each other or in a specific container, etc. The power of the popover api allows us to have the elements separate from each other. At which point we would need a way to know if the invokers target has been changed. As far as a precise definition as long as they contain `popovertarget` then we can determine if the target is open then add a pseudo class to the invoker. Essentially, whenever a target has changed the browser should fine ALL invokers and add a pseudo class to them as well.
Thoughts?



-- 
GitHub Notification of comment by ggedde
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9547#issuecomment-1791919482 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 05:44:44 UTC