Closed Bug 1841316 Opened 2 years ago Closed 5 months ago

WPT failures in css/css-grid/grid-items/replaced-element-[011-013].html

Categories

(Core :: Layout: Grid, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1944423

People

(Reporter: twisniewski, Unassigned)

References

(Blocks 2 open bugs)

Details

wpt.fyi:

All of these seem to rely on a <canvas> being placed/sized as expected in a grid, so I suspect there is a common underlying reason for them to fail.

We're failing all three of these tests because we render the grid as being 10px wide, when the test expects it to be 100px wide. This seems to be a case with a sort-of circular relationship.

When we lay out this testcase in Firefox, we resolve the intrinsic width of the grid based on the intrinsic width of the canvas (its sole grid item), which has width=10.

But the test seems to be expecting that our intrinsic sizing algorithm for the grid will take into account the fact that we already know that the canvas will ultimately be 100px tall (from its 100% and the grid's grid-template-rows declaration), and we'll translate that height through the canvas's aspect ratio to instead produce an intrinsic width contribution of 100px from the canvas.

In this case that's easy to intuitively see and reason about, but I'm not sure this is doable or sensible in general.... This would require us to do grid layout (to know the precise cell placement of grid items, and the sizing of those cells) before we can resolve the intrinsic width of the grid, which is a bit circular.

Severity: -- → S3
Component: CSS Parsing and Computation → Layout: Grid

replaced-element-[011-013].html are all fixed by bug 1944423.

Status: NEW → RESOLVED
Closed: 5 months ago
No longer depends on: 1944423
Duplicate of bug: 1944423
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.