[Webkit-unassigned] [Bug 146043] New: CSS scroll snap: defining snap points on axis that does not scroll does not work properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 16 20:46:00 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=146043

            Bug ID: 146043
           Summary: CSS scroll snap: defining snap points on axis that
                    does not scroll does not work properly
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: bfulgham at webkit.org

We get incorrect behavior if we define a document with a horizontally-scrolling container, but only define scroll-snap-points in the Y-axis.

In this configuration, the scroll-snap implementation builds both horizontal and vertical snap points. Since there are no snap points defined on the horizontal axis, we end up with only the default [0, max] snap points. This causes us to snap all the way to the far end of the container.

The fix is probabaly in AxisScrollSnapOffsets.cpp in updateFromStyle. I think that cases where there are no defined scroll-snap points, we shouldn't create a set of points that only contains the beginning and end points of the container.


-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150617/3e0faae8/attachment.html>


More information about the webkit-unassigned mailing list