Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6115dad242cb03810a92adce597dc955c8e5d05a
      
https://github.com/WebKit/WebKit/commit/6115dad242cb03810a92adce597dc955c8e5d05a
  Author: Alan Baradlay <[email protected]>
  Date:   2026-09-25 (Fri, 25 Sep 2026)

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-056-expected.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-056-ref.html
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-056.html
    M Source/WebCore/layout/integration/flex/FlexIntegrationUtils.cpp

  Log Message:
  -----------
  REGRESSION(309544@main): Elements with aspect-ratio don't shrink inside 
display flex
https://bugs.webkit.org/show_bug.cgi?id=325275
<rdar://problem/188393652>

Reviewed by Sammy Gill.

309544@main made the flex container invalidate and recompute its items' 
intrinsic widths while measuring them.
In a column flex container the item still has the main-axis (height) overriding 
size from the previous layout,
and with aspect-ratio that stale height turns into the old width, so the 
container (and the grid track it sits in) never shrinks.

Tests: 
imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-056-ref.html
       
imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-056.html

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-056-expected.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-056-ref.html:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/flex-aspect-ratio-056.html:
 Added.
* Source/WebCore/layout/integration/flex/FlexIntegrationUtils.cpp:
(WebCore::LayoutIntegration::FlexItemDefiniteCrossSizeScope::FlexItemDefiniteCrossSizeScope):

Canonical link: https://commits.webkit.org/321951@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to