Bug 145157 - A scroller with "scroll-snap-coordinate" descendants needs interdependent X and Y snap offsets
Summary: A scroller with "scroll-snap-coordinate" descendants needs interdependent X a...
Status: RESOLVED DUPLICATE of bug 145099
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
: 219273 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-05-18 19:05 PDT by Simon Fraser (smfr)
Modified: 2021-07-07 07:18 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***