W3C home > Mailing lists > Public > www-style@w3.org > November 2015

[css-scroll-snap] Splitting scroll-snap-type, shorthanding on scroll container

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 24 Nov 2015 17:31:44 -0500
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <5654E550.6030202@inkedblade.net>
The current 'scroll-snap-type' property takes two different,
and orthogonal, sets of values:

scroll-snap-type: none | [ proximity | mandatory ] || [ x | y | block | inline | both | point ]

There are the “strictness” values and the “axis” values.

We're thinking it would make sense to have a shorthand
and two longhands here. The question is, what are they
all called?

I've come up with four ideas so far:

   a) scroll-snap         -> scroll-snap-type / scroll-snap-axis
   b) scroll-snap         -> scroll-snap-capture / scroll-snap-axis
   c) scroll-snap-type    -> scroll-snap-capture / scroll-snap-axis
   d) scroll-snap-capture -> scroll-snap-type / scroll-snap-axis

I'm not super keen on any of them and welcome other ideas.

My main reservation with a) and b) is that 'scroll-snap'
might be better used as a shorthand for 'scroll-snap-align'
and 'scroll-snap-area', which are set on descendants of the
scroll container... or alternately we may want 'scroll-snap'
to also reset the 'scroll-snap-padding' property.

Thoughts on appropriate shorthanding structures and/or names?

Received on Tuesday, 24 November 2015 22:32:20 UTC

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