Skip to content

Commit 4fac58e

Browse files
committed
[css-scroll-snap] Define handling of scroll-snap-points: repeat() when last repetition doesn't perfectly align to end edge of scrollable area.
1 parent bf39d66 commit 4fac58e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

css-scroll-snap/Overview.bs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,11 @@ Scroll Snapping Coordinates: the 'scroll-snap-points-x' and 'scroll-snap-points-
375375
Defines start-<a href="#scroll-snap-alignment">aligned</a> <a>snap areas</a>
376376
that span the <a>scrollable area</a> in the appropriate axis,
377377
starting from the <a>start</a> edge of the <a>scrollable area</a>
378-
and spanning across every <<length>> throughout the <a>scrollable area</a>.
378+
and spanning every <<length>> across the entire <a>scrollable area</a>,
379+
with the end edge of the last <a>snap area</a> occuring at or past the end edge of the <a>scrollable area</a>.
380+
<span class="note">Note that the last <a>snap position</a>
381+
effectively gets pulled into the scrollable area as necessary
382+
to prevent overscrolling, see [[#choosing]].</span>
379383

380384
Negative values are invalid.
381385
User agents must define a UA-defined minimum <<length>> greater than 0

0 commit comments

Comments
 (0)