Open
Bug 1918794
Opened 1 month ago
Updated 1 month ago
Incorrect size on the subgrid axis when using aspect-ratio
Categories
(Core :: Layout: Grid, defect)
Core
Layout: Grid
Tracking
()
NEW
People
(Reporter: boris, Unassigned)
References
Details
Attachments
(1 file)
655 bytes,
text/html
|
Details |
When checking if we need to pass the containing block size to a grid item which is a subgrid (for Bug 1865438), I noticed we have a different result from Blink and Webkit when using subgrid and aspect-ratio together. See the attached testcase.
- Expected Result: We should see a 80px * 100px green rect, with a blue small rect at the bottom right corner (just as that result in Blink and WebKit).
- Actual Result: We render a 80px * 80px green rect, with a blue small rect at the bottom right corner.
Also, when I replaced max-height
with height
in the testcase I attached, I hit this assertion:
MOZ_ASSERT(aspectRatioUsage == AspectRatioUsage::None)
in nsIFrame::ComputeSize()
.
You need to log in
before you can comment on or make changes to this bug.
Description
•