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

> I'm also skeptical to re-using `<slot>`. Even if you introduce a new attribute, for instance `pseudo`, there is an interaction issue with shadow dom slotting if the pseudo element is in a shadow tree:
> 
> ```html
> <div id="host">
>   <template shadowrootmode="open">
>     <menu>
>       <slot pseudo="::before"></slot> <!-- Is this the default slot for the <div>Slotted</div> below? -->
>     </menu>
>   </template>
>   <div>Slotted</div>
> </div>
> ```
> 

Sure
The particular choice of element is something that can be reasoned about, I am wondering about the main concept first.

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


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

Received on Wednesday, 13 August 2025 12:09:22 UTC