w3c / w3c/csswg-drafts

[css-scroll-snap-2] Should scroll-start-target specify alignment?

Open
#9,012 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

css-scroll-snap-2
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

The scroll-snap-2 spec lets authors specify "none" or "auto" for scroll-start-target.
Would it be more useful to allow authors to specify how scrollers should align to these targets?

Perhaps keyword options similar to scrollintoview or scroll-snap-align would make sense.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the css-scroll-snap-2 scroll-start-target definition in the linked spec, then compare the alignment behavior described by scrollIntoView and scroll-snap-align. The issue needs a resolved CSSWG direction before implementation is clear; done would be an agreed alignment model reflected in the specification.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.