Contact emails
sakh...@chromium.org
Explainer
https://github.com/danielsakhapov/declarative-scroll-commands-for-html-explainer
Specification
No information provided
Summary
A set of new `command` values for the `HTMLButtonElement` to declaratively control the scroll position of a target element.
This allows authors to create custom scrolling UI (e.g., for carousels or galleries) without requiring JavaScript, improving accessibility and simplifying implementation.
Blink component
Blink>HTML
Web Feature ID
Missing feature
Motivation
Authors frequently build custom components that contain a scrollable region, such as:
A horizontal carousel of products or images.
A vertically scrolling list of items within a modal.
A 2D scrolling area for a map or canvas.
These components almost always require custom "Next," "Previous," "Up," or "Down" buttons. Currently, authors must write JavaScript to wire these buttons up. This proposal moves this common, repetitive behavior into the platform, making it declarative, robust, and accessible by default.
Initial public proposal
https://github.com/openui/open-ui/issues/1220
Requires code in //chrome?
False
Tracking bug
https://g-issues.chromium.org/issues/457939344
Estimated milestones
No milestones specified
Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/6400108400869376?gate=6716412206907392