Re: [csswg-drafts] [css-flexbox][css-grid] Intrinsic sizing with ∑flex < 1 is broken

OK, new fix:

> 1. For each flex item, subtract its outer flex base size from its max-content contribution size. If that result is not zero, divide it by (if the result was positive) its flex grow factor floored at 1, or (if the result was negative) by its scaled flex shrink factor, having floored the flex shrink factor at 1. This is the item’s max-content flex fraction.
> 2. Place all flex items into lines of infinite length.
> 3. Within each line, find the largest max-content flex fraction among all the flex items. <ins>If the sum of the flex grow factors (flex shrink factors, if the largest max-content flex fraction was negative) on that line is less than one, divide each flex grow factor by that sum to rescale their total to one.</ins> 
> 4. Add each item’s flex base size to the product of its <ins>rescaled</ins> flex grow factor (or <ins>rescaled</ins> scaled flex shrink factor, if the chosen max-content flex fraction was negative) and the chosen max-content flex fraction, then clamp that result by the max main size property floored by the min main size property.
> 5. The flex container’s max-content size is the largest sum of the afore-calculated sizes of all items within a single line. 

(Yes, “rescaled scaled” sounds a bit silly.)

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

Received on Monday, 11 September 2017 19:11:30 UTC