Skip to content

Commit 680afde

Browse files
authored
[css-scroll-snap-1] Scroll by page should not skip over content. (#11370)
As per #10914 when selecting a snap point as a result of a scroll by page operation we should always select a snap position that is less than a page away if one exists.
1 parent b143c8b commit 680afde

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

css-scroll-snap-1/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,10 @@ Choosing Snap Positions {#choosing}
10901090
10911091
The user agent may also do this even when the scroll container has ''scroll-snap-type: none''.
10921092

1093+
* If a scroll by page operation (e.g. Page down / Page up) is being performed,
1094+
eligible snap positions that require scrolling less than or equal to the size of the optimal viewing region of the scroll container
1095+
should be selected before any farther away, ignoring the starting snap positions so that progress is still made in the intended direction.
1096+
10931097

Selecting between multiple aligned snap areas

10941098

10951099
When snapping to a scroll position

0 commit comments

Comments
 (0)