Skip to content

Commit

Permalink
[css-flexbox-1] Exclude collapsed items from intrinsic main size comp…
Browse files Browse the repository at this point in the history
…utation. #5985
  • Loading branch information
fantasai committed Jun 9, 2021
1 parent a3b967d commit 60ffc40
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions css-flexbox-1/Overview.bs
Expand Up @@ -2965,7 +2965,8 @@ Flex Container Intrinsic Main Sizes</h4>
The <strong><a>max-content</a> <a>main size</a> of a <a>flex container</a></strong>
is the smallest size the <a>flex container</a> can take
while maintaining the [[#intrinsic-item-contributions|max-content contributions]] of its <a>flex items</a>,
insofar as allowed by the items’ own flexibility:
insofar as allowed by the items’ own flexibility.
Considering only non-[=collapsed=] [=flex items=]:

<ol>
<li>
Expand Down Expand Up @@ -2999,11 +3000,11 @@ Flex Container Intrinsic Main Sizes</h4>

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

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

0 comments on commit 60ffc40

Please sign in to comment.