Skip to content

Commit e8796f4

Browse files
committed
[css-grid] Clarify that the transferred size has its input clamped just like the automatic minimum size does.
1 parent f0d83c2 commit e8796f4

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

css-grid/Overview.bs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ At Risk: application of grid placement to absolutely-positioned boxes
3434

3535
<pre class="link-defaults">
3636
spec:css-break-3; type:dfn; text:fragment
37+
spec: css-flexbox-1; type:dfn
38+
text: specified size
39+
text: content size
40+
text: transferred size
3741
</pre>
3842

3943
<style type="text/css">
@@ -1251,11 +1255,14 @@ Implied Minimum Size of Grid Items</h3>
12511255
(The effect is analogous to the <a>automatic minimum size</a>
12521256
imposed on <a>flex items</a>.)
12531257
[[!CSS-FLEXBOX-1]]
1258+
12541259
However, if the <a>grid item</a> spans only <a>grid tracks</a>
12551260
that have a <a lt="fixed sizing function">fixed</a> <a>max track sizing function</a>,
1256-
its <a>automatic minimum size</a> in that dimension
1257-
is further clamped to less than or equal to the size necessary
1258-
to fit its margin box within the resulting <a>grid area</a> (flooring at zero).
1261+
its <a>specified size</a> and <a>content size</a> in that dimension
1262+
(and the input to the <a>transferred size</a> in the other dimension)
1263+
are further clamped to less than or equal to the size necessary
1264+
to fit its margin box within the resulting <a>grid area</a> (flooring at zero),
1265+
so as to prevent the <a>automatic minimum size</a> from forcing overflow of its fixed-size grid area.
12591266

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

0 commit comments

Comments
 (0)