Description
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:
<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>