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

@keithamus please, note two things:

- CSSPseudoElement provides .type which returns its type as a string e.g. '::scroll-maker', so the check would be no different from checking a string.
- CSSPseudoElement returned by .pseudo() is a persistent-identity proxy object, which is returned even when no pseudo element is "created" per e.g. CSS rules, so you can't really leak it there.

-- 
GitHub Notification of comment by danielsakhapov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12163#issuecomment-3175165424 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:39:06 UTC