New issue
Advanced search Search tips

Issue 863409 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Jan 17
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 497851



Sign in to add a comment

[css-scroll-snap] Larger Than Snapport elements is snapped in some cases

Project Member Reported by majidvp@chromium.org, Jul 13

Issue description

See the following example where there is a large overflowing image:
https://snap.glitch.me/carousel.html

Note that this example uses "center" alignment snapping.

It works as expected with small scroller sizes but once scroller size
is larger than a certain size but still smaller than the image then it will snap.

My guess is that we are triggering the condition where the previous and next snap points are smaller than the snapport size.

In particular, since this example is using center aligned snapping, the
distance between the snap position for the larger item to the next item only includes half the size of the actual item. This can explain why we
do the right thing for smaller viewports but not for larger ones.
 
Labels: -Pri-3 M-69 Pri-2
I just ran into this testing that demo site. This seems pretty bad, I get stuck on the larger item and can't scroll away from it. This is with both touchpad and touchscreen scrolling on a chromebook.
Are you on latest canary? There was a recent patch that fix a bug on
compositor scrolling.
I think #1 is referring to issue that was fixed in this patch: https://chromium-review.googlesource.com/c/chromium/src/+/1136613

I no longer experience that. However the center alignment issue still
stands. Talking to sunyunjia@, we are matching what specification is asking.

So perhaps we should bring this up with editor and see if this is something
they care to change.
Blocking: 497851

Comment 5 by sunyunjia@chromium.org, Jan 17 (5 days ago)

Status: WontFix (was: Assigned)

Sign in to add a comment