Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 7dcc86a73bc796460a0cf714450999166d7c24ea
      
https://github.com/WebKit/WebKit/commit/7dcc86a73bc796460a0cf714450999166d7c24ea
  Author: Sammy Gill <[email protected]>
  Date:   2026-02-12 (Thu, 12 Feb 2026)

  Changed paths:
    M Source/WebCore/layout/formattingContexts/grid/GridLayout.cpp
    M Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp

  Log Message:
  -----------
  [GFC] TrackSizingAlgorithm needs to know if the max track sizing function is 
auto
https://bugs.webkit.org/show_bug.cgi?id=307624
rdar://170192225

Reviewed by Alan Baradlay.

Currently TrackSizingAlgorithm is unable to know if the max track sizing
function is auto. This causes us to skip over the "stretch auto tracks,"
portion of the algorithm because we fail to see these tracks. This
happens because in GridLayout::trackSizingFunctions we transform the
auto and fit-content max track sizing functions to max-content since the
spec says "in all cases, treat auto and fit-content() as max-content,
except where specified otherwise for fit-content()."
https://drafts.csswg.org/css-grid-1/#algo-terms

For now let's stop doing this transformation, watch out for auto and
fit-content in TrackSizingAlgorithm, and either match the max-content
behavior or other behavior as called out by the spec.

* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::sizeTracksToFitNonSpanningItems):
I removed the fit-content stub logic here since we'll probably just
detect this in another case for the switchOn (or some other way if we
decide to try a different approach again).

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



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

Reply via email to