Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scroll-start-target #423

Open
DavMila opened this issue Nov 5, 2024 · 1 comment
Open

scroll-start-target #423

DavMila opened this issue Nov 5, 2024 · 1 comment
Assignees
Labels
from: Google Proposed, edited, or co-edited by Google. topic: css Spec relates to CSS (Cascading Style Sheets) topic: scrolling venue: W3C CSS WG

Comments

@DavMila
Copy link

DavMila commented Nov 5, 2024

WebKittens

No response

Title of the proposal

CSS "scroll-start-target" property

URL to the spec

https://drafts.csswg.org/css-scroll-snap-2/#scroll-start-target

URL to the spec's repository

https://github.com/w3c/csswg-drafts/blob/main/css-scroll-snap-2

Issue Tracker URL

No response

Explainer URL

https://github.com/DavMila/explainer-scroll-start-target

TAG Design Review URL

w3ctag/design-reviews#1011

Mozilla standards-positions issue URL

mozilla/standards-positions#1107

WebKit Bugzilla URL

No response

Radar URL

No response

Description

This is a proposal to introduce a CSS property which authors can use to control which element(s) a scroll container will be initially scrolled to, i.e. when it first appears on a page. It is intended to provide a reliable way for developers to give their scroll containers a non-(0,0) default starting scroll position without using JavaScript or other tricks involving animations and scroll-snapping.

@DavMila
Copy link
Author

DavMila commented Dec 11, 2024

Just a quick update here:

  • the CSS working group resolved to use scroll-initial-target instead of scroll-start-target and nearest instead of auto

per TAG feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from: Google Proposed, edited, or co-edited by Google. topic: css Spec relates to CSS (Cascading Style Sheets) topic: scrolling venue: W3C CSS WG
Projects
None yet
Development

No branches or pull requests

4 participants