W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2020

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

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Thu, 27 Aug 2020 22:22:39 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-682220638-1598566958-sysbot+gh@w3.org>
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.


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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:13 UTC