You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Have a feeling that this feature, "a selector that depends on layout", falls victim to the same reasons why something like ":stuck" just isn't a viable pseudo-class...
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.
The text was updated successfully, but these errors were encountered: