New issue
Advanced search Search tips

Issue 821656 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 497851



Sign in to add a comment

Implement scroll snapping visibility requirement

Project Member Reported by majidvp@chromium.org, Mar 14 2018

Issue description

Currently scroll snapping algorithms selects closest point from all snap areas ignoring whether they are visible in viewport or not.

The spec requires us to limit valid candidates to those visible [1]. Here is the relevant text:

"Since the purpose of scroll snapping is to align content within the viewport for optimal viewing, a scroll container cannot be snapped to a snap area if no part of it is within the snapport. For example, a snap area is top-aligned to the snapport if its top edge is coincident with the snapport’s top edge; however, this scroll position is nonetheless not a valid snap position if the entire snap area is outside the snapport (because the required alignment, though satisfied, would not be relevant to the viewer)."



[1] https://drafts.csswg.org/css-scroll-snap-1/#snap-scope

 
Blocking: 497851
Summary: Implement scroll snapping visibility requirement (was: Implement scroll snap visibility requirement)
Status: Fixed (was: Started)
See patch https://chromium-review.googlesource.com/c/chromium/src/+/814874

Sign in to add a comment