Re: [csswg-drafts] [css-flexbox] Undefined target main size in Resolving Flexible Lengths (#5179)

Typing all this out made me see what was probably intended. Possible resolutions:

Introduce step zero (before renumbering):

> 0. Each item in the flex line has a **target main size**, initially set to its *flex base size*. Each item is initially **unfrozen** and may become *frozen*, indicating that its *target main size* won’t change further.

Restructure step 4.c.:

> c. If the *remaining free space* is non-zero, distribute it proportional to the flex factors:
>
> <dl>
>     <dt>If using the flex grow factor</dt>
>     <dd>For every unfrozen item on the line, […]</dd>
>     <dt>Otherwise (Note: using the flex shrink factor),</dt>
>     <dd>For every unfrozen item on the line, […]</dd>
> </dl>

Bonus drive-by clarification: in step 4.e. “Freeze over-flexed items” add a non-normative note:

> This freezes at least one item, ensuring that the loop makes progress and eventually terminates.

-- 
GitHub Notification of comment by SimonSapin
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5179#issuecomment-640021148 using your GitHub account

Received on Saturday, 6 June 2020 09:35:15 UTC