Re: [csswg-drafts] [css-overflow-5] Giving ::scroll-marker-group a name (and optionally text) (#12176)

@keithamus for clarity, would it look something like this?

```html
<style>
.carousel { scroll-marker-group: after; }
.carousel::column::scroll-marker { content: ""; }
</style>
<div class=carousel>
  <div class=item></div>
  <div class=item></div>
  <div class=item></div>
  <div class=item></div>
  <scroll-marker-group>
    Scroll marker group label:
  </scroll-marker-group>
</div>
```

Presumably the `<scroll-marker-group>` element should wrap the generated markers, but are the markers added after the user provided content or does the user provide something that contains them? E.g.

```
  <scroll-marker-group>
    Scroll marker group label:
    ::column(1)::scroll-marker
    ::column(2)::scroll-marker
  </scroll-marker-group>
```

Or is the idea that the author wouldn't be allowed to provide any contents for the `<scroll-marker-group>` element but could include it in an element that provides those details, e.g.

```html
<style>
.carousel { scroll-marker-group: after; }
.carousel::column::scroll-marker { content: ""; }
</style>
<div class=carousel>
  <div class=item></div>
  <div class=item></div>
  <div class=item></div>
  <div class=item></div>
  <div class=marker-group>
    Scroll marker group label:
    <scroll-marker-group><!-- Contents are replaced by the markers --></scroll-marker-group>
  </div>
</div>
```


-- 
GitHub Notification of comment by flackr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12176#issuecomment-3282362373 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:30:06 UTC