Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6ec233675a708b3ac9d0cc463f1dfbb753119501
https://github.com/WebKit/WebKit/commit/6ec233675a708b3ac9d0cc463f1dfbb753119501
Author: Ahmad Saleem <[email protected]>
Date: 2025-08-14 (Thu, 14 Aug 2025)
Changed paths:
M LayoutTests/TestExpectations
M Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp
M Source/WebCore/rendering/RenderFlexibleBox.cpp
Log Message:
-----------
Fix automatic min size handling of flex and grid items to match the
specification
https://bugs.webkit.org/show_bug.cgi?id=297325
rdar://158215991
Reviewed by Sammy Gill.
This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.
Inspired by: https://chromium-review.googlesource.com/c/chromium/src/+/5505559
Both the grid and flex specs mention "scroll container" already, which
means that visible and clip should behave the same:
* https://drafts.csswg.org/css-grid/#min-size-auto
* https://drafts.csswg.org/css-flexbox/#min-size-auto
This patch adds `Overflow: Clip` handling relevant functions.
* Source/WebCore/rendering/GridTrackSizingAlgorithm.cpp:
(WebCore::GridTrackSizingAlgorithmStrategy::minContributionForGridItem const):
* Source/WebCore/rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::shouldApplyMinSizeAutoForFlexItem const):
* LayoutTests/TestExpectations: Progressions
Canonical link: https://commits.webkit.org/298690@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes