- From: Keith Cirkel via GitHub <noreply@w3.org>
- Date: Thu, 11 Sep 2025 19:18:00 +0000
- To: public-css-archive@w3.org
> To my knowledge, slots are currently only used within shadow DOM, so extending that model to UA pseudo-elements like ::scroll-marker-group would be new?
This is how the `<details>` element works under the hood. It is effectively:
```html
<details>
<template shadowrootmode="secret-browser-mode">
<slot secret-browser-part="summary"><div>Details</div></slot>
<slot secret-browser-pseudo="::details-content"></slot>
</template>
</details>
```
(The `secret-browser-*` bits are made up for demonstration).
This means if you make a `<details>` element with no summary, you get a summary with contents of the default slot (`<div>Details</div>`). We could do the same for scroll-marker-group whereby an element that becomes a scroll container gets an effective shadow dom of:
```html
<template shadowrootmode="secret-browser-mode">
<slot secret-browser-part="scroll-marker-group" secret-browser-pseudo="::scroll-marker-group"><!-- some default html here --></slot>
</template>
```
--
GitHub Notification of comment by keithamus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12176#issuecomment-3282327598 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 11 September 2025 19:18:01 UTC