Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2a4dad78a1274bfc014f6dd1b93e978240d3ea61
https://github.com/WebKit/WebKit/commit/2a4dad78a1274bfc014f6dd1b93e978240d3ea61
Author: Sammy Gill <[email protected]>
Date: 2026-05-11 (Mon, 11 May 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/GridLayoutUtils.cpp
M Source/WebCore/layout/formattingContexts/grid/PlacedGridItem.cpp
M Source/WebCore/layout/formattingContexts/grid/PlacedGridItem.h
Log Message:
-----------
[GFC] Implement logic to determine if grid item has a preferred aspect ratio .
https://bugs.webkit.org/show_bug.cgi?id=314557
rdar://176798557
Reviewed by Alan Baradlay.
Grid will base some behavior dependent on whether the grid item has a
preferred aspect ratio. We currently store a bit on PlacedGridItem.
which is initialized to false without any other logic to change this
value. We can remove this bit and instead have a function that
determines and returns a preferred aspect ratio based upon:
https://drafts.csswg.org/css-sizing-4/#aspect-ratio
Canonical link: https://commits.webkit.org/313033@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications