Skip to content

Commit 0cadf52

Browse files
committed
[css-grid-1][css-grid-2] Allow fixed-range tracks to absorb leftover space from spanning items when intrinsic-range tracks are filled up, if possible. #3648
1 parent 9673546 commit 0cadf52

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

css-grid-1/Overview.bs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4399,6 +4399,18 @@ Distributing Extra Space Across Spanned Tracks</h4>
43994399
and the track is not marked [=infinitely growable=],
44004400
then each |item-incurred increase| will be zero.
44014401

4402+
<li>
4403+
<strong>Distribute |space| to non-affected tracks:</strong>
4404+
4405+
If extra |space| remains at this point,
4406+
and the item spans both |affected tracks| and non-|affected tracks|,
4407+
distribute space as for the previous step,
4408+
but into the non-|affected tracks| instead.
4409+
4410+
Note: This distributes any remaining space into tracks
4411+
that have not yet reached their growth limits,
4412+
instead of violating the growth limits of the |affected tracks|.
4413+
44024414
<li>
44034415
<strong>Distribute |space| beyond limits:</strong>
44044416

css-grid-2/Overview.bs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5074,6 +5074,18 @@ Distributing Extra Space Across Spanned Tracks</h4>
50745074
and the track is not marked [=infinitely growable=],
50755075
then each |item-incurred increase| will be zero.
50765076

5077+
<li>
5078+
<strong>Distribute |space| to non-affected tracks:</strong>
5079+
5080+
If extra |space| remains at this point,
5081+
and the item spans both |affected tracks| and non-|affected tracks|,
5082+
distribute space as for the previous step,
5083+
but into the non-|affected tracks| instead.
5084+
5085+
Note: This distributes any remaining space into tracks
5086+
that have not yet reached their growth limits,
5087+
instead of violating the growth limits of the |affected tracks|.
5088+
50775089
<li>
50785090
<strong>Distribute |space| beyond limits:</strong>
50795091

0 commit comments

Comments
 (0)