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)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: rego, Unassigned)

Details

Attachments

(1 file)

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.
Component: Untriaged → Layout
Product: Firefox → Core
[ Triage 2017/02/20: P3 ]
Priority: -- → P3
Severity: normal → S3
Component: Layout → Layout: Grid
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: