Closed
Bug 1507639
Opened 6 years ago
Closed 6 years ago
[css-grid] Grid container with min-content height is not using the minimum height
Categories
(Core :: Layout, defect)
Core
Layout
Tracking
()
RESOLVED
INVALID
People
(Reporter: rego, Unassigned)
Details
Attachments
(1 file)
283 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Steps to reproduce:
Open attached example of a grid container with "height: min-content" and "grid-template-rows: minmax(100px, 400px)".
Actual results:
The height of the grid container is 400px.
Expected results:
The height should be 100px.
That's what happens for widths in the same example.
Reporter | ||
Updated•6 years ago
|
Component: Untriaged → Layout
Product: Firefox → Core
Reporter | ||
Comment 1•6 years ago
|
||
Ok sorry I should read specs before reporting bugs. :-(
This is not a Firefox bug, as according to the 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."
I'm setting "height: min-content", which means I'm setting it for the block size. In which case it behaves as the initial value that is "auto", and then Firefox rendering is correct.
Sorry for the noise.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•