WebKit / standards-positions

WebKit's positions on emerging web specifications
https://webkit.org/standards-positions/
254 stars 21 forks source link

scroll-start-target #423

Open DavMila opened 2 weeks ago

DavMila commented 2 weeks ago

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

https://github.com/w3ctag/design-reviews/issues/1011

Mozilla standards-positions issue URL

https://github.com/mozilla/standards-positions/issues/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.