[Webkit-unassigned] [Bug 223021] New: CSS scroll snap should allow scrolling to the middle of snap areas that overflow the snapport

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Mar 10 01:54:02 PST 2021


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

            Bug ID: 223021
           Summary: CSS scroll snap should allow scrolling to the middle
                    of snap areas that overflow the snapport
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Scrolling
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mrobinson at webkit.org
                CC: simon.fraser at apple.com

In the "Snapping Boxes that Overflow the Scrollport" section [1] of the CSS Scroll Snap specification, it reads:

  If the snap area is larger than the snapport in a particular axis, then any scroll
  position in which the snap area covers the snapport, and the distance between the
  geometrically previous and subsequent snap positions in that axis is larger than
  size of the snapport in that axis, is a valid snap position in that axis. The UA 
  may use the specified alignment as a more precise target for certain scroll operations
  (e.g. explicit paging).

In order to implement this behavior, the scroll snap selection code needs to know the size of snap areas when choosing snap points during scrolling. This is perhaps a good moment to rework the scroll snap data structure so that it will be able to support masonry layouts as well.

1. https://drafts.csswg.org/css-scroll-snap-1/#snap-overflow

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210310/4d040e4d/attachment-0001.htm>


More information about the webkit-unassigned mailing list