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

+4
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,10 @@ Choosing Snap Positions {#choosing}
10901090
if its nearest <a>scroll container</a> is a <a>scroll snap container</a>.
10911091
The user agent <em>may</em> also do this even when the <a>scroll container</a> has ''scroll-snap-type: none''.
10921092

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

10951099
When <a>snapping</a> to a scroll position

0 commit comments

Comments
 (0)