Re: [csswg-drafts] [css-scroll-snap] More granular control over scroll-snap-stop (#5467)

Note that `scroll-snap-stop` is meant to be set on elements _within_ the scroll container, not on the scroll container itself. That already provides granular control over where the scroll operation should end. At least that's what I understand when reading the spec., though it could be a little bit clearer on that, e.g. by saying "Applies to: all elements within a scroll container" instead of just "all elements".

As far as I can see, the example page you linked to currently doesn't make use of `scroll-snap-stop`, so it's hard to say what the expected effect is in that case, but that page could use `scroll-snap-stop: always;` on important slides, so the scroll operation definitely stops there while other slides are scrolled over.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5467#issuecomment-682220638 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 27 August 2020 22:22:41 UTC