Re: [csswg-drafts] [css-values] Add the `fr` (flexible length) unit for general use as a length unit (#5296)

In general, if you let elements change their size according to the leftover space, this will affect the leftover space, creating a circularity!
In Grid this is avoided because `fr` units can only be used for sizing tracks, not items. And track sizes can depend on the intrinsic contributions of the items, but not on their final sizes.
I'm not convinced that this would work well in all layout models. Specifically, in flexbox, how would this play with `flex-grow` and `flex-shrink`?
Also, if you turn `<flex>` into a `<length>`, then you can use things like `calc(1fr - 1px)`, which are not clear.

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

Received on Wednesday, 8 July 2020 12:41:09 UTC