From c5107e8755164ca0d175eebe5336c63d6b2beb1f Mon Sep 17 00:00:00 2001 From: Robert Flack Date: Fri, 13 Dec 2024 12:05:06 -0500 Subject: [PATCH] [css-scroll-snap-1] Scroll by page should not skip over content. 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. --- css-scroll-snap-1/Overview.bs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/css-scroll-snap-1/Overview.bs b/css-scroll-snap-1/Overview.bs index b93690fb80fe..daf7a4398f3a 100644 --- a/css-scroll-snap-1/Overview.bs +++ b/css-scroll-snap-1/Overview.bs @@ -1090,6 +1090,10 @@ Choosing Snap Positions {#choosing} if its nearest scroll container is a scroll snap container. The user agent may also do this even when the scroll container has ''scroll-snap-type: none''. + * If a scroll by page operation (e.g. Page down / Page up) is being performed, + eligible snap positions that require scrolling less than or equal to the size of the optimal viewing region of the scroll container + should be selected before any farther away, ignoring the starting snap positions so that progress is still made in the intended direction. +

Selecting between multiple aligned snap areas

When snapping to a scroll position