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

I don't think passing a pseudoTarget is the thing we want, otherwise it greatly complicates the logic for boundary event dispatch - e.g. if the pointer moved from `::before::marker` to `::before` the we would need to dispatch boundary events for some pseudo targets but not others.

Instead, I think that there should be a single flag to the Element addEventListener that opts into pseudo-element aware event dispatches. E.g. we will dispatch boundary events for movements between pseudoelements.

-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12163#issuecomment-3174989908 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 14:02:34 UTC