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

  Changed paths:
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-intrinsic-block-size-expected.txt
    A 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-intrinsic-block-size.html
    M Source/WebCore/rendering/RenderBox.cpp

  Log Message:
  -----------
  aspect-ratio is ignored on out-of-flow boxes with height: fit-content / 
min-content / max-content
https://bugs.webkit.org/show_bug.cgi?id=325418
<rdar://problem/188597811>

Reviewed by Sammy Gill.

Intrinsic sizing keywords behave as auto in the block axis, but 
computeOutOfFlowPositionedLogicalHeightUsing()
resolved them against the content before reaching the aspect ratio branch. 
Check the aspect ratio first, like the in-flow path does.

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-intrinsic-block-size-expected.txt:
 Added.
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-sizing/aspect-ratio/abspos-intrinsic-block-size.html:
 Added.
* Source/WebCore/rendering/RenderBox.cpp:
(WebCore::RenderBox::computeOutOfFlowPositionedLogicalHeightUsing const):

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



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

Reply via email to