Bug 145157

Summary: A scroller with "scroll-snap-coordinate" descendants needs interdependent X and Y snap offsets
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: 50167214, bfulgham, mrobinson, simon.fraser, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Description Simon Fraser (smfr) 2015-05-18 19:05:10 PDT
We currently store a list of offsets for X and Y axes for snap points. When a scroller has descendants with 'scroll-snap-coordinate' values, we need to store x,y points, not independent lists of x and y offsets.

http://dev.w3.org/csswg/css-snappoints/
Comment 1 Simon Fraser (smfr) 2015-06-17 14:16:35 PDT
Spec is actually unclear on this point, and it's under discussion.
Comment 2 yisibl 2015-07-08 19:58:10 PDT
We must support offset value(Firefox 39 also supported: https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-coordinate)

Like this:

scroll-snap-coordinate: top right 10px;
scroll-snap-coordinate: bottom 10px right 20px;

and scroll-snap-destination

scroll-snap-destination: top right 10px;
scroll-snap-destination: bottom 10px right 20px;

See also http://dev.w3.org/csswg/css-backgrounds-3/#position
Comment 3 yisibl 2015-07-08 19:59:37 PDT
Name:	scroll-snap-coordinate
Value:	none | <position>#

Also scroll-snap-coordinate: none is not support.
Comment 4 Martin Robinson 2020-10-16 09:45:36 PDT
This might be a duplicate of https://bugs.webkit.org/show_bug.cgi?id=145099?
Comment 5 Radar WebKit Bug Importer 2020-11-30 09:29:33 PST
<rdar://problem/71808529>
Comment 6 Martin Robinson 2021-01-20 04:42:37 PST
*** Bug 219273 has been marked as a duplicate of this bug. ***
Comment 7 Martin Robinson 2021-07-07 07:18:13 PDT

*** This bug has been marked as a duplicate of bug 145099 ***