Open Bug 1671528 Opened 4 years ago Updated 2 years ago

[css-grid-3] Investigate item stretching with max-size and auto-margins in the masonry axis

Categories

(Core :: Layout: Grid, defect, P3)

defect

Tracking

()

Tracking Status
firefox83 --- affected

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

It appears we only stretch auto-margin(s) when present:
https://searchfox.org/mozilla-central/rev/e0eb861a187f0bb6d994228f2e0e49b2c9ee455e/layout/generic/nsGridContainerFrame.cpp#6897,6900
but if the item has auto size and a definite max-size, then we should probably stretch the size first (up to the max-size) and then start stretching the margins.
That's how stretching works elsewhere in CSS so it seems we should be consistent with that.

Attached file Testcase #1
Blocks: css-grid-3

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: MatsPalmgren_bugz → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: