You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[css-grid][css-sizing] min-content size of grid container in block axis #3684
The max-content size (min-content size) of a grid container is the sum of the grid container’s track sizes (including gutters) in the appropriate axis, when the grid is sized under a max-content constraint (min-content constraint).
So in the block axis it seems CSS Sizing defines the min-content size to be equal to the max-content size, while CSS grid defines them to be different in general.
Usually this is not observable because it's hard to get a min-content size in the block axis, e.g. block-size: min-content behaves as auto. But it's used e.g. in https://drafts.csswg.org/css-flexbox-1/#min-size-auto
The content size suggestion is the min-content size in the main axis
which can be the block axis in a column flex container.
Chromium used to let the first row be 0px tall, but currently it behaves like Firefox and min-height:auto on the flex item lets the 1st row grow to 100px and no red is shown. Is this right?
Seems fine, though it's unfortunate that Chromium already had this behavior but changed because of the old css-sizing. I hope changing back will still be web compatible.
Activity
[css-sizing-3] Make min-content block size definition a bit less pres…
tabatkins commentedon Aug 11, 2020
Looks like this has been fixed since it was reported, the definition of min-content block size is now:
which allows for specific layout algos to override the "in general" wording.
Loirooriol commentedon Aug 23, 2020
Seems fine, though it's unfortunate that Chromium already had this behavior but changed because of the old css-sizing. I hope changing back will still be web compatible.