Re: [csswg-drafts] [css-grid-1] Distribution of intrinsic sizes according to flex factors doesn't handle sum < 1 (#6078)

I already mentioned this possibility in #3694, but when we discussed it, not distributing the whole contribution didn't seem the right thing to do. Though I guess we could still distribute it all and have continuity by saying something like:
1. If the sum of the flexible sizing functions is < 1, multiply the space to distribute by that sum.
    Otherwise use the space to distribute.
2. Distribute that (if > 0) according to the ratios.
3. Distribute the remaining space (if > 0) equally.

So, when distributing 100px among two flex tracks,

| Tracks  | Current | Continuous |
| ------------- | ------------- | ------------- |
| 0fr 0fr  | 50px 50px  | 50px 50px  |
| 0fr 0.1fr  | 0px 100px | 45px 55px |
| 0fr 1fr  | 0px 100px | 0px 100px |
| 0.1fr 0.3fr  | 25px 75px | 40px 60px |
| 0.2fr 0.6fr  | 25px 75px | 30px 70px |
| 0.3fr 0.9fr  | 25px 75px | 25px 75px |

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


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

Received on Friday, 5 March 2021 17:14:05 UTC