Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c2519b57af750bd6bb0f2daf9f3c294fd143d68d
https://github.com/WebKit/WebKit/commit/c2519b57af750bd6bb0f2daf9f3c294fd143d68d
Author: Elika Etemad <[email protected]>
Date: 2026-01-27 (Tue, 27 Jan 2026)
Changed paths:
A
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/aspect-ratio-stretch-item-001-expected.html
A
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/aspect-ratio-stretch-item-001.html
M Source/WebCore/rendering/RenderBox.cpp
Log Message:
-----------
Revert incorrect stretch alignment test in aspect-ratio dependency check
https://bugs.webkit.org/show_bug.cgi?id=306319
rdar://168880191
Reviewed by Sammy Gill.
305260@main tried to fix an aspect ratio check that wasn't broken, which
resulted in us failing to compute automatic heights correctly when combining
aspect-ratio and stretch alignment on auto-sized grid items in the block axis.
This patch reverts the extra conditional.
Test:
imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/aspect-ratio-stretch-item-001.html
*
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/aspect-ratio-stretch-item-001-expected.html:
Added.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-grid/layout-algorithm/aspect-ratio-stretch-item-001.html:
Added.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::shouldComputeLogicalHeightFromAspectRatio const):
Canonical link: https://commits.webkit.org/306282@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications