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 Rendering | Assignee: | 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 | ||
Simon Fraser (smfr)
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/
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
Spec is actually unclear on this point, and it's under discussion.
yisibl
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
yisibl
Name: scroll-snap-coordinate
Value: none | <position>#
Also scroll-snap-coordinate: none is not support.
Martin Robinson
This might be a duplicate of https://bugs.webkit.org/show_bug.cgi?id=145099?
Radar WebKit Bug Importer
<rdar://problem/71808529>
Martin Robinson
*** Bug 219273 has been marked as a duplicate of this bug. ***
Martin Robinson
*** This bug has been marked as a duplicate of bug 145099 ***