Skip to content

Commit d0f3040

Browse files
committed
[css-flexbox][css-grid] Content-based auto min doesn't cause indefiniteness, but other *-content min sizes do. #6457
1 parent ef78972 commit d0f3040

File tree

3 files changed

+16
-9
lines changed

3 files changed

+16
-9
lines changed

css-flexbox-1/Overview.bs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,10 @@ Grid doesn't have similarly meaningful shrinkability, so it doesn't need to care
10281028
Note this means that percentages calculated against this size
10291029
will [=behave as auto=].
10301030

1031-
For other cases, it does not force the box's size to become indefinite.
1031+
For any purpose <em>other than</em> calculating intrinsic sizes,
1032+
a [=content-based minimum size=]
1033+
(unlike an explicit ''min-content''/etc [=minimum size=])
1034+
does not force the box's size to become indefinite.
10321035
However, if a percentage resolved against the box's size <em>before</em> this minimum was applied,
10331036
it must be re-resolved against the new size after it is applied.
10341037

css-grid-1/Overview.bs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1386,10 +1386,12 @@ Automatic Minimum Size of Grid Items</h3>
13861386
Note this means that percentages calculated against this size
13871387
will [=behave as auto=].
13881388

1389-
Nonetheless, although this may require an additional layout pass to re-resolve percentages in some cases,
1390-
this value
1391-
(like the ''min-content'', ''max-content'', and ''fit-content'' values defined in [[CSS-SIZING-3]])
1392-
does not prevent the resolution of percentage sizes within the item.
1389+
For any purpose <em>other than</em> calculating intrinsic sizes,
1390+
a [=content-based minimum size=]
1391+
(unlike an explicit ''min-content''/etc [=minimum size=])
1392+
does not force the box's size to become indefinite.
1393+
However, if a percentage resolved against the box's size <em>before</em> this minimum was applied,
1394+
it must be re-resolved against the new size after it is applied.
13931395

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

css-grid-2/Overview.bs

+6-4
Original file line numberDiff line numberDiff line change
@@ -1434,10 +1434,12 @@ Automatic Minimum Size of Grid Items</h3>
14341434
Note this means that percentages calculated against this size
14351435
will [=behave as auto=].
14361436

1437-
Nonetheless, although this may require an additional layout pass to re-resolve percentages in some cases,
1438-
this value
1439-
(like the ''min-content'', ''max-content'', and ''fit-content'' values defined in [[CSS-SIZING-3]])
1440-
does not prevent the resolution of percentage sizes within the item.
1437+
For any purpose <em>other than</em> calculating intrinsic sizes,
1438+
a [=content-based minimum size=]
1439+
(unlike an explicit ''min-content''/etc [=minimum size=])
1440+
does not force the box's size to become indefinite.
1441+
However, if a percentage resolved against the box's size <em>before</em> this minimum was applied,
1442+
it must be re-resolved against the new size after it is applied.
14411443

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

0 commit comments

Comments
 (0)