Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6562831a90c9390fdafa623c095d634c5a5885bb
      
https://github.com/WebKit/WebKit/commit/6562831a90c9390fdafa623c095d634c5a5885bb
  Author: Yulun Wu <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

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

  Log Message:
  -----------
  [GFC] Distribute extra space into non-affected tracks.
https://bugs.webkit.org/show_bug.cgi?id=321053
<rdar://184082252>

Reviewed by Alan Baradlay.

This PR distributes space to non-affected tracks per CSS Grid ยง11.5.1, step 2.3.

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

Step 2.1 subtracts the affected size of spanned tracks from the item's 
contribution.
Step 2.2 distributes extra space into affected tracks up to their limits.
Step 2.3 subtracts the extra space non-affected tracks can contribute when 
sized to their limit.

The increases it computes are discarded, as the step's only purpose is to 
decrease
spaceToDistribute for step 2.4. This is because only affected tracks receive
a planned increase in step 2.5.

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

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



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

Reply via email to