Skip to content

Commit 60ffc40

Browse files
committed
[css-flexbox-1] Exclude collapsed items from intrinsic main size computation. #5985
1 parent a3b967d commit 60ffc40

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

css-flexbox-1/Overview.bs

+5-4
Original file line numberDiff line numberDiff line change
@@ -2965,7 +2965,8 @@ Flex Container Intrinsic Main Sizes</h4>
29652965
The <strong><a>max-content</a> <a>main size</a> of a <a>flex container</a></strong>
29662966
is the smallest size the <a>flex container</a> can take
29672967
while maintaining the [[#intrinsic-item-contributions|max-content contributions]] of its <a>flex items</a>,
2968-
insofar as allowed by the items’ own flexibility:
2968+
insofar as allowed by the items’ own flexibility.
2969+
Considering only non-[=collapsed=] [=flex items=]:
29692970

29702971
<ol>
29712972
<li>
@@ -2999,11 +3000,11 @@ Flex Container Intrinsic Main Sizes</h4>
29993000

30003001
The <strong><a>min-content</a> <a>main size</a></strong> of a <em><a>single-line</a></em> flex container
30013002
is calculated identically to the <a>max-content</a> <a>main size</a>,
3002-
except that the <a>flex item’s</a> [[#intrinsic-item-contributions|min-content contribution]] is used
3003-
instead of its [[#intrinsic-item-contributions|max-content contribution]].
3003+
except that the <a>flex items</a> [[#intrinsic-item-contributions|min-content contributions]] are used
3004+
instead of their [[#intrinsic-item-contributions|max-content contributions]].
30043005
However, for a <em><a>multi-line</a></em> container,
30053006
it is simply the largest [[#intrinsic-item-contributions|min-content contribution]]
3006-
of all the <a>flex items</a> in the <a>flex container</a>.
3007+
of all the non-[=collapsed=] <a>flex items</a> in the <a>flex container</a>.
30073008

30083009
<details class=note>
30093010
<summary>Implications of this algorithm when the sum of flex is less than 1</summary>

0 commit comments

Comments
 (0)