[css-scroll-anchoring-1] Explicit anchoring
Nobody has claimed this yet.
- Dominant language
- Bikeshed
- Stars
- 4.9k
- Forks
- 816
- PR merge metrics
- PR metrics pending
Description
The Scroll Anchoring module already allows to opt-out elements of the scroll anchoring algorithm via overflow-anchor: none;. And auto makes an element potentially eligible for anchoring. Though there is currently no way to enforce anchoring to an element.
The idea behind this is to allow the author to tell the user agent explicitly that it should prefer specific elements when running the anchor node selection algorithm. A use case for this are several content pieces, of which one is the main content.
To make this possible, there should be a new value like prefer for the overflow-anchor property.
Elements having this value set should be checked first by influencing the order in which the elements are checked in step 2 of the anchoring node selection algorithm.
It might also influence the candidate examination algorithm by preferring those elements over fully visible elements even when they are just partially visible.
Sebastian
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 Scroll Anchoring module, the overflow-anchor property definition, and the anchoring node selection algorithm referenced in the issue. Determine the specification changes needed for a prefer value and its selection behavior; done means the proposal is resolved in the draft with agreed algorithm text.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100