[css-scroll-snap] Larger Than Snapport elements is snapped in some cases |
|||
Issue descriptionSee 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.
,
Jul 16
Are you on latest canary? There was a recent patch that fix a bug on compositor scrolling.
,
Jul 20
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.
,
Jul 20
,
Jan 17
(5 days ago)
|
|||
►
Sign in to add a comment |
|||
Comment 1 by flackr@chromium.org
, Jul 16