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

Re: CSS properties for snapping during scrolling

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 15 Aug 2013 15:57:56 -0700
Message-ID: <CAAWBYDDkLR6BRP77NvVmR-FzYQeEvngE2Q98qu=n02bFg2VmJw@mail.gmail.com>
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: www-style <www-style@w3.org>
On Thu, Aug 15, 2013 at 3:20 PM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Thu, Aug 15, 2013 at 6:16 PM, Tab Atkins Jr. <jackalmage@gmail.com>
> wrote:
>>
>> Yes, this is one of my favorite features, and I agree with your analysis.
>> ^_^
>
>
> So, any comments on the actual proposal? :-)

Proposal's good, except for the tie to physical directions.

scroll-snap-[vertical|horizontal] should be scroll-snap-[block|inline]

scroll-snap-edge should have values of: "none | [ margin-block-start
|| margin-inline-start || block-start || inline-start ]".  Maybe add
just "margin-start || start" to it as well, which sets the edges in
both axises.

scroll-snap needs an additional value that abruptly jumps between the
snap points, rather than allowing smooth scrolling and then adjusting
to a snap point (this is used by things like spreadsheets).

I'd add an additional property for setting explicit snap points in
addition to the implicit points coming from the children, probably
with a repetition syntax so you can set up a snap point every 100px or
whatever.

~TJ
Received on Thursday, 15 August 2013 22:58:42 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 15 August 2013 22:58:42 UTC