Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6a56af7906c5400a6ee6df202c3b65c7347a7040
https://github.com/WebKit/WebKit/commit/6a56af7906c5400a6ee6df202c3b65c7347a7040
Author: Sammy Gill <[email protected]>
Date: 2026-10-06 (Tue, 06 Oct 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/flex-sizing-rows-min-max-height-border-box-001-expected.txt
A
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/flex-sizing-rows-min-max-height-border-box-001.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/grid-stretch-respects-min-size-002-expected.xht
A
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/grid-stretch-respects-min-size-002.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/grid-stretch-respects-min-size-003-expected.xht
A
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/grid-stretch-respects-min-size-003.html
M Source/WebCore/layout/integration/grid/LayoutIntegrationGridLayout.cpp
Log Message:
-----------
[GFC] Grid container min/max sizes ignore box-sizing: border-box.
https://bugs.webkit.org/show_bug.cgi?id=326424
rdar://problem/189235347
Reviewed by Alan Baradlay.
constraintsForGridContent() passed the grid container's computed min/max-width
and
min/max-height straight to the track sizing algorithm, which works in terms of
the
content box. When the container has box-sizing: border-box these values include
its
border and padding, so GFC overestimated the container's minimum and maximum
content
size. For an indefinite block size this inflated the free space used to stretch
auto
rows and to clamp the flex fraction, making rows (and the grid) too tall.
Convert the min/max sizes to content-box sizes with the same RenderBox helpers
legacy
layout uses.
Tests:
imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/flex-sizing-rows-min-max-height-border-box-001.html
imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/grid-stretch-respects-min-size-002.html
imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/grid-stretch-respects-min-size-003.html
Canonical link: https://commits.webkit.org/322856@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications