Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 358ab6ef2c669be38136e630518e9589f2fc31d0
https://github.com/WebKit/WebKit/commit/358ab6ef2c669be38136e630518e9589f2fc31d0
Author: Yulun Wu <[email protected]>
Date: 2026-09-15 (Tue, 15 Sep 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
Log Message:
-----------
[GFC] Group spanning items by span size in the content sized intrinsic sizing
phase
https://bugs.webkit.org/show_bug.cgi?id=324196
rdar://187413690
Reviewed by Sammy Gill.
This PR implements item selection for the content sized phase of
https://drafts.csswg.org/css-grid-1/#algo-spanning-items.
itemsToAccommodate() now returns one group of items per span size, in
increasing span order, and
resolveIntrinsicTrackSizesWithSpanningItems() is called for each group to
perform intrinsic, content based track sizing.
Items with a span of 1 are already handled by sizeTracksToFitNonSpanningItems().
Items crossing a flexible track are handled in the flexible phase which
considers
items together rather than grouped by span size.
* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::spanGroupsNotCrossingFlexibleTracks):
(WebCore::Layout::itemsToAccommodate):
(WebCore::Layout::resolveIntrinsicTrackSizesWithSpanningItems):
(WebCore::Layout::resolveIntrinsicTrackSizes):
Canonical link: https://commits.webkit.org/321194@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications