-
Notifications
You must be signed in to change notification settings - Fork 1.7k
REGRESSION(300921@main): Exclude fixed-positioned boxes from position-area scrollable CB #53326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
EWS run on previous version of this PR (hash 39a7d34) |
39a7d34 to
91cc75c
Compare
|
EWS run on previous version of this PR (hash 91cc75c)
|
alanbaradlay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add the regression information to the title, please.
.../imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-004.html
Show resolved
Hide resolved
91cc75c to
ab8f894
Compare
|
EWS run on current version of this PR (hash ab8f894)
|
…-area scrollable CB https://bugs.webkit.org/show_bug.cgi?id=301880 rdar://163955483 Reviewed by Alan Baradlay. The recent fix for bug 299950 forgot to exclude fixed-positioned boxes from the root scrollable containing block pathway, resulting in incorrect layout for fixed-positioned boxes that use position-area. However, we still need to avoid using overflow safety to overlap the anchor when it would otherwise be reachable. This patch excludes fixed-positioned boxes from using the scrollable containing block from sizing and positioning, but allows them to overflow into that area when necessary. Tests: imported/w3c/web-platform-tests/css/css-anchor-position/position-area-fixed.html imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-003-ref.html imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-003.html imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-004-ref.html imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-004.html * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-fixed-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-fixed.html: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-001-expected.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-001-ref.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-001.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-002.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-003-expected.html: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-001-expected.html. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-003-ref.html: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-001-expected.html. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-003.html: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-001.html. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-004-expected.html: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-001-expected.html. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-004-ref.html: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-001-expected.html. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-004.html: Copied from LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/position-area-overflow-icb-002.html. Update and add tests. * Source/WebCore/rendering/PositionedLayoutConstraints.cpp: (WebCore::PositionedLayoutConstraints::PositionedLayoutConstraints): (WebCore::PositionedLayoutConstraints::expandToScrollableArea const): (WebCore::PositionedLayoutConstraints::captureScrollableArea): Deleted. Adjust captureScrollableArea API to be re-usable for different LayoutRanges. Exempt fixed-positioned boxes from the m_containingRange adjustment. (WebCore::PositionedLayoutConstraints::resolveAlignmentShift const): Adjust overflow alignment area for fixed-positioned boxes. (WebCore::PositionedLayoutConstraints::containerAllowsInfiniteOverflow const): Add missing check for scrollable RenderView (which returns false on hasPotentiallyScrollableOverflow() even when the document is scrollable). * Source/WebCore/rendering/PositionedLayoutConstraints.h: (WebCore::PositionedLayoutConstraints::expandToScrollableArea): Canonical link: https://commits.webkit.org/302537@main
ab8f894 to
a742f82
Compare
|
Committed 302537@main (a742f82): https://commits.webkit.org/302537@main Reviewed commits have been landed. Closing PR #53326 and removing active labels. |
a742f82
ab8f894