[css-overflow-5] Should nested scroll-marker generating elements result in nested ::scroll-marker pseudo-elements?
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
Consider the following demo also prototyped at https://codepen.io/flackr/pen/JoPxZmV:
<style>
section::scroll-marker {
content: attr(data-title);
}
</style>
<section data-title="About">
<section data-title="Who">
</section>
<section data-title="What we do">
</section>
</section>
-
This could generate a flat list of markers:
- About
- Who
- What we do
-
Or, should the generated
::scroll-markerpseudo-element forAboutcontain the markers established by descendant elements, e.g.- About
- Who
- What we do
- About
I've written up an example of what this might look like for both table of contents like scenarios and dot-like scenarios. This does affect how you would have to handle dots to have them render nicely. E.g you'd probably need the dots containing other dots to render their dot as a ::before so that it doesn't wrap all of its descendants.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodePen demo and the CSS Overflow 5 scroll-marker proposal. Compare the flat-marker and nested-marker outcomes, including the implications for dot-like presentations. Done means reaching a resolved behavior for nested scroll-marker-generating elements and recording that decision in the relevant specification text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100