Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0c9c8bd55498d1a6a5b893aeeb7d291f706b2e08
      
https://github.com/WebKit/WebKit/commit/0c9c8bd55498d1a6a5b893aeeb7d291f706b2e08
  Author: Yulun Wu <[email protected]>
  Date:   2026-08-14 (Fri, 14 Aug 2026)

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

  Log Message:
  -----------
  [GFC] Clamp a track's growth limit to its base size when sizing non-spanning 
items
https://bugs.webkit.org/show_bug.cgi?id=321760
<rdar://184881194>

Reviewed by Sammy Gill.

Per spec:

https://drafts.csswg.org/css-grid-1/#algo-single-span-items

11.5.2: Size tracks to fit non-spanning items

"if a track's growth limit is now less than its base size,
increase the growth limit to match the base size."

* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::UnsizedTrack::ensureGrowthLimitIsBiggerThanBaseSize):
(WebCore::Layout::sizeTracksToFitNonSpanningItems):

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



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

Reply via email to