Skip to content

Scroll snap to a single element with scroll-snap-type: pair #1438

Open

Description

@lcdavid94

Description

Add pair to scroll-snap-type to indicate that the snap container should snap to the same element in X and Y axes. The existing both keyword allows the container to select different snap targets in X and Y axes.

Specification

https://drafts.csswg.org/css-scroll-snap-1/#snap-axis

web-feature

scroll-snap

Test Links

https://wpt.fyi/results/?label=master&label=experimental&aligned&q=scroll-snap-type-pair

Additional Signals

Standards positions: Webkit Mozilla

Activity

  1. github-actions commented on Sep 22, 2026

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web feature (from the web-features project) which is referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    Feature Scroll snap

  2. lcdavid94 commented on Oct 1, 2026

    @lcdavid94
    Author

    Filed web-platform-dx/web-features#4461 to propose a separate ID for this feature. Will update the initial comment once approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions