Re: [csswg-drafts] Add a property to the `CSSPseudoElement` IDL interface to determine if a pseudo element "exists" (#12158)

+1 to preferring an explicit API for this over inspecting computed style on the pseudo element. IIRC, in most cases style computation on the originating element gives us enough information to determine which pseudos will be generated. It would be unfortunate perf-wise to have to also compute style for a pseudo just to check whether it's generated.

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


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

Received on Tuesday, 24 June 2025 22:38:05 UTC