Re: [csswg-drafts] [css-pseudo-4] Proxying pseudo-elements as "real" (`<slot>`) elements (#12575)

(Noam ran this by me before they posted it.)

I like this idea quite a bit! By having a real element, a lot of questions are automatically answered, and we reduce the necessary API surface a lot. It's also an explicit opt-in, so we don't have to worry about legacy behavior for, say, mouseover events. The remaining questions (like how to handle pseudo-elements with arguments, or ones with multiplicity) are already questions in need of answering, so this doesn't complicate things further than they already are, I think.

I think re-using `slot` in this way seems reasonable - it conceptually functions similarly to its role in shadow trees. I'd be okay if we had to invent a fresh element for it too, tho.

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


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

Received on Tuesday, 5 August 2025 17:35:11 UTC