Skip to content

Commit ee30fab

Browse files
committed
[css-scroll-snap] Handle when snapping would cause overscroll.
1 parent fa4f800 commit ee30fab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

css-scroll-snap/Overview.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,11 @@ Choosing Snap Positions {#choosing}
761761
and the final snapped scroll position,
762762
subject to the additional constraints listed in this section.
763763

764+
* If the most appropriate <a>snap position</a> is "unreachable",
765+
such that aligning to it would "overscroll" the <a>scroll container</a>,
766+
the <a>scroll container</a> must be scrolled <em>as much as possible</em> in each axis
767+
toward the desired <a>snap position</a>.
768+
764769
* <a>2D snap positions</a> are all-or-nothing;
765770
if a <a>2D snap position</a> is chosen to align to,
766771
the <a>scroll container</a> must set its scroll position

0 commit comments

Comments
 (0)