Closed Bug 1782297 Opened 2 years ago Closed 2 years ago

Obey contain-intrinsic-size in grid containers

Categories

(Core :: Layout, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
105 Branch
Tracking Status
firefox105 --- fixed

People

(Reporter: Oriol, Assigned: Oriol)

References

Details

Attachments

(1 file)

nsGridContainerFrame.cpp assumes a 0 intrinsic size when there is size containment.
The spec is not completely clear (https://github.com/w3c/csswg-drafts/issues/7520) but I guess it should use the content size specified in contain-intrinsic-size.
none values should take the track sizes and gaps into account, but that's bug 1488878.

Some tests are still failing but I think it's due to bug 1481876: after
determining the block size of the grid container, the rows that depend
on it (like percentages or fr units) are not recomputed.

Also, 'contain-intrinsic-size: none' behaves as 0, ignoring the track
sizes and gaps, but that's bug 1488878.

Pushed by oriol-bugzilla@hotmail.com:
https://hg.mozilla.org/integration/autoland/rev/e17c5e069451
Obey contain-intrinsic-size in grid containers. r=emilio
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 105 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: