Re: [csswg-drafts] [css-flexbox-1] Should Flex Container Intrinsic Main Size algorithm really use _scaled_ flex shrink factor? (#6909)

Ah, I suppose it is technically undefined how to compare a flex fraction derived from the positive flex grow factor (units of "length") and a negative scaled flex shrink factor (units of "number"), but when we wrote it we figured it since the first case is *always non-negative* and the second case was *always non-positive* it was clear enough; magnitudes didn't need to be compared between the two cases, just the sign.

The sign of the chosen fraction determines which of the factors to use, which correctly unifies the result's unit back to "length" so it can be meaningfully added to the base szie.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 25 March 2022 22:50:20 UTC