Open the attached example, it's a grid container with "height: min-content" and "grid-template-rows: minmax(50px, 100px)".
The output should be a 100x100 green square, but it's a 100x50 rectangle.
BTW, this works fine in Firefox (we need to use -moz-min-content there).
We're behaving the same for "height: min-content" than for "width: min-content", but that's wrong per spec (https://drafts.csswg.org/css-sizing/#valdef-width-min-content):
"min-content
If specified for the inline axis, use the min-content inline size; otherwise behaves as the property’s initial value."
In the block axis "height: min-content" should behave like "height: auto".
|
Deleted:
bug-min-content-height.html
257 bytes
|
Comment 1 by bugdroid1@chromium.org
, Nov 21