[Webkit-unassigned] [Bug 236142] New: Adding padding on a scroller prevents last item from being fully viewable

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 4 09:53:32 PST 2022


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

            Bug ID: 236142
           Summary: Adding padding on a scroller prevents last item from
                    being fully viewable
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: charlie.croom at gmail.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

When a scrollable element has padding added to it, the last item can never be scrolled into view. This appears to be because there's not enough scrollable area added. Potentially related: the `scrollWidth` property appears to be smaller than that of Chrome and Firefox.

Reduced repro (see Firefox/Chrome handling):
https://jsfiddle.net/comp615/Lf15jkgp/15/

The example kind of illustrates Twitter's use case. We want to show a preview/peek of the next item, or to overflow the parent, while still aligning the scroller to the parent layout).

Potentially related bugs:
#95032
#201453

-- 
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/20220204/6a6a4c47/attachment-0001.htm>


More information about the webkit-unassigned mailing list