W3C home > Mailing lists > Public > www-style@w3.org > August 2013

RE: CSS properties for snapping during scrolling

From: François REMY <francois.remy.dev@outlook.com>
Date: Thu, 15 Aug 2013 19:34:32 -0700
Message-ID: <DUB405-EAS23232A5BB795822E4B15EC5A5470@phx.gbl>
To: <robert@ocallahan.org>
CC: "'Tab Atkins Jr.'" <jackalmage@gmail.com>, "'www-style'" <www-style@w3.org>
> [...] I don't understand what you're saying here.

That's probably why you asked the second question. Instead of trying to explain what I had in mind, let's answer to the next question, you can infer it from that.

> Have you got concrete use-cases where snapping to the margin or border edges of an element would not work?

Scrollable lists where you want to allow to scroll not exactly between elements but 3% off to enable people to see a peek at the previous item as a reminder they can scroll backward.

Or if the content has an inherent padding you cannot remove for specific reasons but do not want to take in consideration for the scrolling algorithm.

You may also want the content-start to be aligned with something positioned externally (so instead of having the left edge of the element coincide with the left edge of the scroll box, you may want to have it starts at 30px (or whatever value marks the position of the element you want to align with).

> Actually, what are the use-cases for [snap-lines outside the one defined by elements]?

Yes. Multicolumn elements are a great example. You may want to allow to snap between any two columns.
Received on Friday, 16 August 2013 02:35:11 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:33 UTC