Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: acd646641dc3157d4422138e1903c37729f9482c
https://github.com/WebKit/WebKit/commit/acd646641dc3157d4422138e1903c37729f9482c
Author: Elika Etemad <[email protected]>
Date: 2026-02-14 (Sat, 14 Feb 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-scrolling-001.tentative-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-scrolling-003.tentative-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-position-area-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-validity-expected.txt
M Source/WebCore/platform/graphics/LayoutRect.h
M Source/WebCore/rendering/PositionedLayoutConstraints.cpp
M Source/WebCore/rendering/RenderBox.cpp
M Source/WebCore/rendering/RenderGrid.cpp
Log Message:
-----------
Give position-area a more accurate scrollable rect and apply to all scrollers
https://bugs.webkit.org/show_bug.cgi?id=291864
rdar://149717067
Reviewed by Alan Baradlay.
Replaces the hacky core of PositionedLayoutConstraints::expandToScrollableArea()
with a call to the new RenderBox::scrollablePaddingAreaOverflowRect() method,
which returns the true scrollable content area bounds.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-scrolling-001.tentative-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-scrolling-003.tentative-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-position-area-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/scrollable-containing-block-validity-expected.txt:
Update test expectations.
* Source/WebCore/platform/graphics/LayoutRect.h:
(WebCore::LayoutRect::xRange const):
(WebCore::LayoutRect::yRange const):
Add helper methods.
* Source/WebCore/rendering/PositionedLayoutConstraints.cpp:
(WebCore::PositionedLayoutConstraints::expandToScrollableArea const):
Update to use the scrollable containing block for position-area != none.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::getScrollableContainingBlockRange):
(WebCore::RenderBox::containingBlockRangeForPositioned const):
* Source/WebCore/rendering/RenderGrid.cpp:
(WebCore::RenderGrid::gridAreaRangeForOutOfFlow const):
Update to return the scrollable containing block for position-area != none.
Canonical link: https://commits.webkit.org/307593@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications