[Webkit-unassigned] [Bug 244232] overscroll-behavior: none doesn't prevent overscroll when page is too small to scroll
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Aug 22 19:19:52 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=244232
--- Comment #2 from Kurt Revis <krevis at figma.com> ---
I'm suspicious of this code in WebCore/page/FrameView.cpp:
OverscrollBehavior FrameView::verticalOverscrollBehavior() const
{
auto* document = frame().document();
auto scrollingObject = document && document->documentElement() ? document->documentElement()->renderer() : nullptr;
if (scrollingObject && renderView() && renderView()->canBeScrolledAndHasScrollableArea())
return scrollingObject->style().overscrollBehaviorY();
return OverscrollBehavior::Auto;
}
When renderView()->canBeScrolledAndHasScrollableArea() is false, we ignore the style and return Auto instead. What is that check trying to accomplish?
--
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/20220823/e4d018f4/attachment.htm>
More information about the webkit-unassigned
mailing list