Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c16b70c96c646bfce4101af8807a1f1e6067a6a6
https://github.com/WebKit/WebKit/commit/c16b70c96c646bfce4101af8807a1f1e6067a6a6
Author: Elika Etemad <[email protected]>
Date: 2025-10-28 (Tue, 28 Oct 2025)
Changed paths:
M LayoutTests/TestExpectations
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-alignment-overflow-001-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-alignment-overflow-001-ref.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-alignment-overflow-001.html
M Source/WebCore/rendering/PositionedLayoutConstraints.cpp
M Source/WebCore/rendering/PositionedLayoutConstraints.h
Log Message:
-----------
Enable safe scrollable overflow of scrollable containing blocks by default
https://bugs.webkit.org/show_bug.cgi?id=300837
rdar://162722820
Reviewed by Alan Baradlay.
In https://github.com/w3c/csswg-drafts/issues/12106 the CSSWG resolved to allow
positioned boxes in scrollable containing blocks to overflow in the scrollable
directions by default. This changes the default handling of alignment overflow
to limit by the containing block's start edges only.
Tests:
imported/w3c/web-platform-tests/css/css-anchor-position/position-area-alignment-overflow-001-ref.html
imported/w3c/web-platform-tests/css/css-anchor-position/position-area-alignment-overflow-001.html
* LayoutTests/TestExpectations:
Pass one more test.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-alignment-overflow-001-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-alignment-overflow-001-ref.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-alignment-overflow-001.html:
Added.
Add a more comprehensive and focused test for this behavior.
* Source/WebCore/rendering/PositionedLayoutConstraints.cpp:
(WebCore::PositionedLayoutConstraints::resolveAlignmentShift const):
Update alignment limit logic to check for allowable overflow.
(WebCore::PositionedLayoutConstraints::containerAllowsInfiniteOverflow const):
* Source/WebCore/rendering/PositionedLayoutConstraints.h:
Using RenderBox::allowedLayoutOverflow() ensures we stay synchronized with
however the container handles overflow. Add a helper method to extract the
correct axis.
Canonical link: https://commits.webkit.org/302259@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications