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>
```


-- 
GitHub Notification of comment by lilles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12575#issuecomment-3182689107 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 08:14:25 UTC