Re: [csswg-drafts] [css-ui] select:hover and select:active styles (#11185)

> ```css
> select::picker(select) {
>   stop-propagation: hover active focus-within;
> }
> ```
> 

I'm not too sure about this. This words it very much in terms of pseudo-classes, and that delineation doesn't necessarily make sense for the use cases here. E.g. you might want `:focus-within` to keep behaving the same for `querySelector()` for the purposes DOM queries, but prevent the propagation when using it for styling.

Hence my preference for re-using primitives like `pointer-events`, I know it's challenging that hit-testing is not well-defined, but I do think `pointer-events: contain` feels like a natural fit in the mental model of `pointer-events: none/auto/etc.`.

(I'm not set in stone with this proposal, but that's the best one I have so far, I'd be open to other ideas, especially if they re-use pre-existing primitives)


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


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

Received on Friday, 10 January 2025 02:04:30 UTC