You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the spec, values of scroll-snap-type follow the format none | [ x | y | block | inline | both ] [ mandatory | proximity ]?, which I understand to mean that values like x mandatory or block are valid, but mandatory alone is not. However, in Section 2 (Motivating Examples) I noticed that scroll-snap-type: mandatory; and scroll-snap-type: proximity; are utilized. Is the intention to make those valid values for scroll-snap-type?
If they are, would it make sense to make the default axis type both when only proximity or mandatory are specified?
The text was updated successfully, but these errors were encountered:
whsieh
changed the title
[css-scroll-snap] Is scroll-snap-type: [ mandatory | proximity ] valid CSS?
[css-scroll-snap] Is scroll-snap-type: [ mandatory | proximity ] valid CSS?
Dec 23, 2016
Good catch. The CSSWG resolved on requiring the axis arguments (usually you want just one axis or the other, not both--both results in weird scrolling behavior on a normal document). The examples didn't get updated, though.
(Tab and I had originally proposed to use whichever axis is scrollable, defaulting to the block axis if both are, but we couldn't get agreement on that so now it's a required argument.)
Link: https://drafts.csswg.org/css-scroll-snap/
According to the spec, values of
scroll-snap-type
follow the formatnone | [ x | y | block | inline | both ] [ mandatory | proximity ]?
, which I understand to mean that values likex mandatory
orblock
are valid, butmandatory
alone is not. However, in Section 2 (Motivating Examples) I noticed thatscroll-snap-type: mandatory;
andscroll-snap-type: proximity;
are utilized. Is the intention to make those valid values forscroll-snap-type
?If they are, would it make sense to make the default axis type
both
when onlyproximity
ormandatory
are specified?The text was updated successfully, but these errors were encountered: