Skip to content

Commit ff7d097

Browse files
committed
[css-scroll-snap] Removed the 'single' value, move and rephrase the issue talking about it.
1 parent 7338f08 commit ff7d097

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

css-scroll-snap/Overview.bs

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Scroll Snapping Rules: the 'scroll-snap-type' property {#snap-type}
229229

230230
<pre class="propdef">
231231
Name: scroll-snap-type
232-
Value: none | [ proximity | mandatory ] && single?
232+
Value: none | proximity | mandatory
233233
Initial: none
234234
Applies to: <a>scroll containers</a>
235235
Inherited: no
@@ -276,22 +276,21 @@ Scroll Snapping Rules: the 'scroll-snap-type' property {#snap-type}
276276
(e.g. content is added, moved, deleted, resized),
277277
the scroll offset must be modified to maintain this guarantee.
278278

279-
<dt><dfn>single</dfn>
280-
<dd>
281-
This keyword indicates that for <a>inertial scrolls</a>,
282-
the next <a>snap position</a> in the direction of the inertia
283-
captures all remaining inertia.
284-
</dl>
279+
Issue: The underlying MS model has a notion of "single mandatory",
280+
where the very next snap point automatically absorbs all the inertia,
281+
even if a fling would normally take you past two or more snap points.
282+
According to Matt, this is actually what MS implemented for ''mandatory''
283+
(need to run tests),
284+
but it's definitely <em>not</em> what Safari implemented.
285+
Do we need a third value to capture this semantic?
286+
Useful, for example, to let someone fling through a post they dont' care about
287+
and automatically catch the next one
288+
in an RSS reader or similar.
285289

286-
Issue: See <a href="https://lists.w3.org/Archives/Public/www-style/2015Jul/0452.html">discussion on snapping in response to layout changes</a>.
287290

288-
Issue: It's not clear from discussions if <css>-ms-scroll-snap-type: mandatory</css> is ''mandatory'' or ''mandatory single''. Should clarify status of the various implementations.
291+
</dl>
289292

290-
Issue: The underlying MS model has the equivalent of "proximity single",
291-
but it's not clear from the documentation what it does,
292-
and Matt Rakow suggests that it was probably just to complete the 2x2 matrix of values.
293-
We should probably instead have "mandatory single" just be a third keyword,
294-
perhaps <css>next</css>?
293+
Issue: See <a href="https://lists.w3.org/Archives/Public/www-style/2015Jul/0452.html">discussion on snapping in response to layout changes</a>.
295294

296295
Scroll Snapping Window: the 'scroll-snap-padding' property {#snap-padding}
297296
-----------------------

0 commit comments

Comments
 (0)