Skip to content

[css-selectors-4] Add new :snap pseudo-class #2999

@BillGoldstein

Description

@BillGoldstein

https://www.w3.org/TR/selectors-4/

Add a :snap pseudo-class for use with scroll-snapping.
Bikeshed the name as appropriate. :snap would be consistant with :focus.

Use case:
One might want to style the snapped item differently than the unsnapped item(s).
E.g. adding a thick border to emphasize the currently snapped item, or de-emphasize the not-currently-snapped item(s) via a filter property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions