Re: [csswg-drafts] [css-grid] Unclear how to limit track growth by fit-content() argument (#4549)

These changes aim to:
* clarify how the fit-content() limit caps the growth limit (at no point is it ever larger than a minmax(auto, [limit]) track)
* apply the fit-content() limit as a cap when distributing space to base sizes, so that we don't blow past the fit-content() limit if other spanned tracks have infinite growth limits (but don't give it more space than a minmax(auto, max-content) track would get otherwise)

The overall principle is to match the smaller of `minmax(auto, max-content)` and `minmax(auto, <var>limit</var>)`, similar to how `width: fit-content(<var>limit</var>)` is defined as `max(min-content, min(max-content, <var>limit</var>))`.

If this looks good to you, we'll raise it to the WG for review!


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


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

Received on Monday, 14 March 2022 23:09:56 UTC