Open
Bug 1427708
Opened 7 years ago
Updated 2 years ago
[css-grid] Automatic minimum height is wrongly computed for an item spanning auto and 1fr rows
Categories
(Core :: Layout: Grid, defect, P3)
Core
Layout: Grid
Tracking
()
UNCONFIRMED
People
(Reporter: rego, Unassigned)
Details
Attachments
(1 file)
242 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36
Steps to reproduce:
Open the attached example, it has a grid container with a fixed size of 20x20 and " grid: auto 1fr / auto 1fr;".
Actual results:
The grid item size is 100x20.
The item spans 2 tracks in both directions, the automatic minimum size is not clamped for the columns but it's clamped for the rows.
Expected results:
The grid item size should be 100x100.
The automatic minimum size shouldn't be clamped in any direction.
The spec (https://drafts.csswg.org/css-grid/#min-size-auto) says that it should be clamped "if the grid item spans only grid tracks that have a fixed max track sizing function",
in this case we don't have tracks like that, so we shouldn't clamp it.
Reporter | ||
Comment 1•7 years ago
|
||
Reporter | ||
Updated•7 years ago
|
Component: Untriaged → Layout
Product: Firefox → Core
Updated•2 years ago
|
Severity: normal → S3
Updated•2 years ago
|
Component: Layout → Layout: Grid
You need to log in
before you can comment on or make changes to this bug.
Description
•