- From: Jesper van den Ende via GitHub <sysbot+gh@w3.org>
- Date: Wed, 29 Jun 2022 15:31:37 +0000
- To: public-css-archive@w3.org
jespertheend has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-scroll-snap] A way to select the currently snapped element. == https://drafts.csswg.org/css-scroll-snap-1/ I would like to style the currently differently. Currently the only way to do this is using JavaScript. And any existing solutions I could find don't seem very robust: - https://stackoverflow.com/questions/61761439/how-can-i-get-css-scroll-snap-to-work-with-js-scroll-event-listener - https://stackoverflow.com/questions/54797620/css-scroll-snap-api Something like `:scroll-snapped` could be nice. Although maybe that is too specific to my personal use case. I'd also like to get access to the currently snapped element via JavaScript, as I plan on performing an action on the snapped element when the user clicks a button. But I don't think this is the correct repository for that request? Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7430 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 29 June 2022 15:31:38 UTC