Intent to Prototype: Snapchanging

209 views
Skip to first unread message

David Awogbemila

unread,
Nov 14, 2023, 8:32:12 AM11/14/23
to blink-dev

Contact emails

awogb...@google.comarg...@google.com

Explainer

https://github.com/argyleink/ScrollSnapExplainers/tree/main/js-snapChanging

Specification

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

Summary

Snapchanging is a JavaScript event that indicates which elements a scroller will snap to. Scroll snap is a feature in web browsers which restricts the scroll positions that scroll containers can rest at. Scroll containers "snap" to these positions. Snapchanging allows developers to create user experiences that rely on predicting where a scroll container will snap to in a reliable manner.



Blink component

Blink>Scroll

Motivation

Scroll snap is a web feature[1] which restricts the scroll positions at which a scroll container may rest after a scrolling action is complete. Scroll containers "snap" to valid scroll positions. Snapchanging would allow web developers to make their web pages responsive to anticipated snap positions, giving them the opportunity to style or animate "snap targets" in line with the browser's eventual snapping action. [1]https://drafts.csswg.org/css-scroll-snap/



Initial public proposal

https://github.com/w3c/csswg-drafts/issues/156#issuecomment-695085852

TAG review

None

TAG review status

Pending

Risks



Interoperability and Compatibility

None



Gecko: No signal

WebKit: No signal

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

None



Debuggability

None



Is this feature fully tested by web-platform-tests?

No

Flag name on chrome://flags

None

Finch feature name

None

Non-finch justification

None

Requires code in //chrome?

False

Tracking bug

https://crbug.com/1494892

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5159140364386304

This intent message was generated by Chrome Platform Status.
Reply all
Reply to author
Forward
0 new messages