Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1fa26052adeb78597a58c63e68a996a1c66c4578
https://github.com/WebKit/WebKit/commit/1fa26052adeb78597a58c63e68a996a1c66c4578
Author: Sammy Gill <[email protected]>
Date: 2026-02-13 (Fri, 13 Feb 2026)
Changed paths:
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp
M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.h
M Source/WebCore/layout/integration/grid/LayoutIntegrationGridCoverage.cpp
Log Message:
-----------
[GFC] Resolve percentage tracks against available grid space
https://bugs.webkit.org/show_bug.cgi?id=307854
rdar://170347774
Reviewed by Elika Etemad.
If a track has a percentage value then it is supposed to resolve against
the inner size of the grid container if it is definite, otherwise it is
treated as auto.
https://drafts.csswg.org/css-grid-1/#track-sizes
GridFormattingContext already trasforms percentage track sizes to auto
if it needs to, so if we see a percentage value inside TrackSizingAlgorithm
then we should be able to resolve it. The "Track Sizing Terminology,"
portion of the spec defines that inner size as the "available grid
space," and is the term we use throughout the track sizing code but it
seems like these should be the same thing if they are definite.
Canonical link: https://commits.webkit.org/307545@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications