Intent To Prototype: Snapchanged Events

227 views
Skip to first unread message

David Awogbemila

unread,
Aug 17, 2023, 10:51:29 AM8/17/23
to blink-dev

Contact emails

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

Explainer

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

Specification

https://drafts.csswg.org/css-scroll-snap-2/#snapchanged-and-snapchanging

Summary

Snapchanged events allow developers reliably listen for when the "snap target" of a scroller changes and perform style adjustments as necessary/desired. CSS scroll snap points are often used as a mechanism to create scroll interactive "selection" components, where selection is determined with javascript intersection observers and a scroll end guestimate. By creating a built-in event, the invisible state will become actionable, at the right time, and always correct.



Blink component

Blink>Scroll

Motivation

This event will help developers synchronize a snapped scroll item with the rest of their interface elements efficiently and effectively.



Initial public proposal

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

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

Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5826089036808192

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