[csswg-drafts] [css-overflow-5] Bikeshed scroll-marker-contain property name (#12191)

flackr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-overflow-5] Bikeshed scroll-marker-contain property name ==
In #10916 we resolved that there should be a property to establish a scroll marker group from anchor links so that authors can get the benefits of `:target-current` styling on existing lists of links. We resolved to make the property `scroll-marker-contain: auto | none`, however, I am somewhat concerned about calling this the same name as the pseudo-element feature, as it could lead to confusion if some new behaviors only make sense with the pseudo-elements.

Instead, I think we should consider a name which establishes it as a related feature, but not the same thing as scroll markers, and we may want the ability to have `scroll-marker-contain affect the way that scroll markers are grouped, e.g. for #11601. Some ideas:
* 😄 scroll-target-group
* 🎉 anchor-target-group
* Something else?

As a reminder, the feature would look something like this in a typical table of contents use case:
```html
<style>
.toc {
  bikeshed-name-here: auto /* We can bikeshed the value too */;
}
a:target-current { font-weight: bold; /* Bold current section */ }
</style>
<ul class=toc>
  <li><a href="#intro">Introduction</a></li>
  <li><a href="#content">Content</a></li>
  <li><a href="#related">Related</a></li>
</ul>
```

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12191 using your GitHub account


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

Received on Tuesday, 13 May 2025 18:29:36 UTC