Skip to content

Commit 69a700a

Browse files
committed
[css-flexbox] Editorial rewrite of the 2nd definiteness special-case to make it much clearer.
1 parent 9446070 commit 69a700a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

css-flexbox/Overview.bs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2696,14 +2696,10 @@ Definite and Indefinite Sizes</h3>
26962696
and is considered <a>definite</a>.
26972697

26982698
<li>
2699-
If a percentage is going to be resolved against a <a>flex item’s</a> <a>main size</a>,
2700-
and the <a>flex item</a> has a <a>definite</a> <a>flex basis</a>,
2699+
If a <a>flex item</a> has a <a>definite</a> <a>flex basis</a>
27012700
and the <a>flex container</a> has a <a>definite</a> <a>main size</a>,
2702-
the <a>flex item’s</a> <a>main size</a> must be treated as <a>definite</a>
2703-
for the purpose of resolving the percentage,
2704-
and the percentage must resolve against the <strong>flexed</strong> <a>main size</a> of the <a>flex item</a>
2705-
(that is, after the layout algorithm below has been completed for the <a>flex item’s</a> <a>flex container</a>,
2706-
and the <a>flex item</a> has acquired its final size).
2701+
its post-flexing main size is treated as <a>definite</a>
2702+
(even though it might technically rely on the sizes of <a>indefinite</a> siblings to resolve its flexed main size).
27072703

27082704
<li>
27092705
Once the cross size of a flex line has been determined,
@@ -2748,6 +2744,7 @@ Flex Container Intrinsic Main Sizes</h4>
27482744
If that result is not zero, divide it by (if the result was positive) its <a>flex grow factor</a> floored at 1,
27492745
or (if the result was negative) by its <a>scaled flex shrink factor</a>, having floored the <a>flex shrink factor</a> at 1.
27502746
This is the item's <var>max-content flex fraction</var>.
2747+
27512748
<li>
27522749
Place all <a>flex items</a> into lines of infinite length.
27532750

0 commit comments

Comments
 (0)