Skip to content

Commit 1d563d1

Browse files
committed
[css-grid-1] Clarify that automatic minimum size is clamped by the max track sizing functions, not by the mins. #3581
1 parent 40bdab9 commit 1d563d1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

css-grid-1/Overview.bs

+7-4
Original file line numberDiff line numberDiff line change
@@ -1246,14 +1246,17 @@ Automatic Minimum Size of Grid Items</h3>
12461246
otherwise its <a>transferred size suggestion</a> if that exists,
12471247
else its <a>content size suggestion</a>,
12481248
see below.
1249-
However, if the <a>grid item</a> spans only <a>grid tracks</a>
1249+
However,
1250+
to prevent the <a>content-based minimum size</a>
1251+
from forcing overflow of its fixed-size grid area,
1252+
if the <a>grid item</a> spans only <a>grid tracks</a>
12501253
that have a <a lt="fixed sizing function">fixed</a> <a>max track sizing function</a>,
12511254
its <a>specified size suggestion</a> and <a>content size suggestion</a> in that dimension
12521255
(and the input to the <a>transferred size suggestion</a> in the other dimension)
12531256
are further clamped to less than or equal to the <a>stretch fit</a>
1254-
the <a>grid area</a>’s size
1255-
(so as to prevent the <a>content-based minimum size</a>
1256-
from forcing overflow of its fixed-size grid area).
1257+
into the <a>grid area</a>’s maximum size,
1258+
as represented by the sum of those <a>grid tracks</a><a>max track sizing functions</a>
1259+
plus any intervening <a lt="fixed sizing function">fixed</a> <a>gutters</a>.
12571260

12581261
The <a>content size suggestion</a>, <a>specified size suggestion</a>, and <a>transferred size suggestion</a>
12591262
used in this calculation account for the relevant min/max/preferred size properties

0 commit comments

Comments
 (0)