[csswg-drafts] [css-selectors-4] Add new :snap pseudo-class

BillGoldstein has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-selectors-4] Add new :snap 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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2999 using your GitHub account

Received on Wednesday, 8 August 2018 04:59:18 UTC