Skip to content

Commit d25cad7

Browse files
committed
[css-flexbox] Clarify that an intrinsic min size makes the size indefinite while calculating intrinsic sizes. Resolves
https://drafts.csswg.org/css-flexbox-1/issues-cr-2016#3
1 parent 69a700a commit d25cad7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

css-flexbox/Overview.bs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,17 @@ Implied Minimum Size of Flex Items</h3>
941941
and then further clamped by the <a>max main size property</a> if that is <a>definite</a>.
942942
</dl>
943943

944+
For the purpose of calculating an intrinsic size of the element
945+
(e.g. the element's <a>min-content size</a>),
946+
this value causes the element's width/height to become indefinite
947+
(even if e.g. its 'width' property specifies a <a>definite</a> size).
948+
Note this means that percentages calculated against this size
949+
will be treated as ''height/auto''.
950+
Otherwise, although this may require an additional layout pass to re-resolve percentages in some cases,
951+
this value
952+
(like the ''min-content'', ''max-content'', and ''fit-content'' values defined in [[CSS3-SIZING]])
953+
does not prevent the resolution of percentage sizes within the item.
954+
944955
Otherwise,
945956
this keyword computes to ''0''
946957
(unless otherwise defined by a future specification).
@@ -964,10 +975,6 @@ Implied Minimum Size of Flex Items</h3>
964975
this traversal is trivial and therefore not a performance concern.)
965976
</div>
966977

967-
Although this may require an additional layout pass to re-resolve percentages in some cases,
968-
the ''min-width/auto'' value of 'min-width' and 'min-height'
969-
(like the ''min-content'', ''max-content'', and ''fit-content'' values defined in [[CSS3-SIZING]])
970-
does not prevent the resolution of percentage sizes within the item.
971978

972979
<h2 id="flow-order">
973980
Ordering and Orientation</h2>

0 commit comments

Comments
 (0)