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

> fwiw, I was imagining something like:
> 
> ```css
> select::picker(select) {
>   stop-propagation: hover active focus-within;
> }
> ```
> 
> …so you could pick individual things.

I think I like that better too - it is more descriptive of what happens, and for what actions. So +1 to this proposal.

> > does it affect JS mouse events?
> 
> Folks in the meeting didn't think it should, and I'm ok with that. However, if folks decide it should impact related JS events, it's important that it only prevents propagation in the bubbling phase. The capturing phase should be left as-is.

Agreed - it seems like JS is a separate, and more complicated thing, and changing event propagation via CSS sounds like a footgun. Having said that, does this impact the name somehow? I.e. instead of `stop-propagation` which almost implies event bubbling, perhaps something like `blocks: hover` or something that indicates it "blocks" the named thing(s) from going above this point? Naming is hard.

-- 
GitHub Notification of comment by mfreed7
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11185#issuecomment-2581528344 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 00:57:42 UTC