Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 763d795e62dca6e1e460b8c71e4b1b1570c2241a
      
https://github.com/WebKit/WebKit/commit/763d795e62dca6e1e460b8c71e4b1b1570c2241a
  Author: Yulun Wu <[email protected]>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

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

  Log Message:
  -----------
  [GFC] Distribute extra space up to or beyond track limits
https://bugs.webkit.org/show_bug.cgi?id=320925
<rdar://183958176>

Reviewed by Alan Baradlay.

This PR adds logic for space distribution beyond limits in CSS Grid ยง11.5.1, 
step 2.4

https://drafts.csswg.org/css-grid-1/#extra-space

We are adding an enum, SpaceDistributionLimit, to {finish}

indexesForUnfrozenAffectedTracks now directly returns the spannedAffectedTracks
when distribution space beyond the growth limit and skip filtering tracks based
on their freeze limit for SpaceDistributionLimit::BeyondGrowthLimit.

distributeSpaceEquallyAmongTracks also directly distributes
(space / tracksRemainingForDistributionCount) space to the affected track
instead of clamping it to the spaceRemainingUntilLimit when under
SpaceDistributionLimit::BeyondGrowthLimit.

* Source/WebCore/layout/formattingContexts/grid/TrackSizingAlgorithm.cpp:
(WebCore::Layout::indexesForUnfrozenAffectedTracks):
(WebCore::Layout::distributeSpaceEquallyAmongTracks):
(WebCore::Layout::distributeExtraSpace):

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



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

Reply via email to