Skip to content

Commit 7cacfbf

Browse files
committed
[css-grid] Fix the sizing of auto tracks when the grid is min/max-content.
1 parent 414c26b commit 7cacfbf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

css-grid/Overview.bs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,13 @@ Resolve Intrinsic Track Sizes</h3>
34273427
to the maximum of the items’ <a>max-content contributions</a>.
34283428
<li>
34293429
<strong>For auto minimums:</strong>
3430-
If the track has an ''auto'' <a>min track sizing function</a>,
3430+
If the track has an ''auto'' <a>min track sizing function</a>
3431+
and the <a>grid container</a> is being sized under a <a lt="min-content constraint">min/max-content constraint</a>,
3432+
set the track's <a>base size</a>
3433+
to the maximum of its items’ <a lt="min-content contribution">min/max-content contributions</a>,
3434+
respectively.
3435+
3436+
Otherwise,
34313437
set its <a>base size</a>
34323438
to the maximum of its items’ “min-size contributions”:
34333439
the value specified by its respective 'min-width' or 'min-height' properties

0 commit comments

Comments
 (0)