[Webkit-unassigned] [Bug 158821] New: Scroll snapping not working for 2 elements

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 15 17:08:12 PDT 2016


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

            Bug ID: 158821
           Summary: Scroll snapping not working for 2 elements
    Classification: Unclassified
           Product: WebKit
           Version: Safari 9
          Hardware: All
                OS: All
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sriramkrish85 at gmail.com
                CC: simon.fraser at apple.com

When i try to use -webkit-scroll-snap-type: mandatory on a container and -webkit-scroll-snap-coordinate: 0 0 on its children, it does not work when there are only 2 elements in the container. 

Here is the URL for my demo  - http://output.jsbin.com/fegace

I found that i could work around this by adding 2 dummy 1px elements on either side of the actual elements and make this sort of work. 
Workaround - http://output.jsbin.com/zitifuy

-- 
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/20160616/57ae927d/attachment.html>


More information about the webkit-unassigned mailing list