Skip to content

Commit 483b58f

Browse files
committed
[css-grid] Clamp automatic minimum by fixed track sizes. (Issue #283)
1 parent 30f90cc commit 483b58f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

css-grid/Overview.bs

+5
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,11 @@ Implied Minimum Size of Grid Items</h3>
12071207
(The effect is analogous to the <a>automatic minimum size</a>
12081208
imposed on <a>flex items</a> in their <a>main axis</a>.)
12091209
[[!CSS-FLEXBOX-1]]
1210+
However, if the <a>grid item</a> spans only <a>grid tracks</a>
1211+
that have a <a lt="fixed sizing function">fixed</a> <a>maximum sizing function</a>,
1212+
its <a>automatic minimum size</a> in that dimension
1213+
is further clamped to less than or equal to the size necessary
1214+
to fit its margin box within the track (flooring at zero).
12101215

12111216
<div class="note" id="min-size-opt">
12121217
Note that while a content-based minimum size is often appropriate,

0 commit comments

Comments
 (0)