Re: [csswg-drafts] How to handle addEventListener on `CSSPseudoElement`? (#12163)

> * Sounds good, but probably won't be needed given this proposal above?

Mine was a suggestion to add specific events _in lieu_ of adding a pseudo element interface. I think my above concerns are still valid that this adds a high burden to developers to understand, and I am not sure the complexities outweigh the benefits.

> Even with specific event types we need some way to understand which specific pseudo has been clicked (would be covered by event.pseudoTarget).

Sure, events can have all sorts of data attached, we can add a `event.pseudoTarget` member without it being an object/interface.

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


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

Received on Monday, 11 August 2025 13:18:57 UTC