Skip to content

Commit 90511c6

Browse files
committed
[css-grid-1] Handle flexible tracks with fixed minimums similar to fixed tracks, to make sure spanning items get accommodated by the intrinsic tracks they cross. #3705
1 parent a485113 commit 90511c6

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

css-grid-1/Overview.bs

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4041,7 +4041,9 @@ Resolve Intrinsic Track Sizes</h3>
40414041
<li id="algo-spanning-items">
40424042
<strong>Increase sizes to accommodate spanning items crossing content-sized tracks:</strong>
40434043
Next, consider the items with a span of 2
4044-
that do not span a track with a <a>flexible sizing function</a>.
4044+
that do not span a track with both
4045+
a <a>flexible sizing function</a> and
4046+
an <a lt="intrinsic sizing function">intrinsic</a> <a>min track sizing function</a>.
40454047
<!-- auto-min contribution <= min-content contribution <= max-content contribution -->
40464048

40474049
<ol>
@@ -4157,7 +4159,9 @@ Resolve Intrinsic Track Sizes</h3>
41574159
Next, repeat the previous step
41584160
instead considering (together, rather than grouped by span size)
41594161
all items
4160-
that <em>do</em> span a track with a <a>flexible sizing function</a>
4162+
that <em>do</em> span a track with both
4163+
a <a>flexible sizing function</a> and
4164+
an <a lt="intrinsic sizing function">intrinsic</a> <a>min track sizing function</a>
41614165
while
41624166
<ul>
41634167
<li>
@@ -4560,22 +4564,29 @@ Major Changes</h4>
45604564
to intrinsic track sizes so that
45614565
they contribute to the size of flexible tracks that have an intrinsic min
45624566
rather than being ignored.
4563-
(<a href="https://github.com/w3c/csswg-drafts/issues/2177">Issue 2177</a>)
4567+
(<a href="https://github.com/w3c/csswg-drafts/issues/2177">Issue 2177</a>,
4568+
<a href="https://github.com/w3c/csswg-drafts/issues/3705">3705</a>)
45644569
<blockquote>
45654570
<ul>
45664571
<li>
45674572
<strong>Size tracks to fit non-spanning items:</strong>
45684573
For each track with an intrinsic <a>track sizing function</a>
45694574
<ins>and not a <a>flexible sizing function</a></ins>,
4570-
consider the items in it with a span of 1:
4575+
consider the items in it with a span of 1: &hellip;
45714576
<li>
4572-
&hellip;
4577+
<strong>Increase sizes to accommodate spanning items crossing content-sized tracks:</strong>
4578+
Next, consider the items with a span of 2
4579+
that do not span a track with <ins>both</ins>
4580+
a <a>flexible sizing function</a> <ins>and
4581+
an <a lt="intrinsic sizing function">intrinsic</a> <a>min track sizing function</a></ins>.
45734582
<li>
45744583
<ins><strong>Increase sizes to accommodate spanning items crossing flexible tracks:</strong>
45754584
Next, repeat the previous step
45764585
instead considering (together, rather than grouped by span size)
45774586
all items
4578-
that <em>do</em> span a track with a <a>flexible sizing function</a>
4587+
that <em>do</em> span a track with both
4588+
a flexible sizing function and
4589+
an intrinsic min track sizing function
45794590
while
45804591
<ul>
45814592
<li>

0 commit comments

Comments
 (0)