Open Bug 1893389 Opened 10 months ago Updated 10 months ago

Grid with columns: auto 1fr 1fr fails to render

Categories

(Core :: Layout: Grid, defect)

defect

Tracking

()

People

(Reporter: gal.dolber, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(3 files)

Attached file bug.html

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Steps to reproduce:

Bug example attached

Actual results:

The 'auto' column takes the whole width and the text column overflows

Expected results:

See two columns, the image and the text, inside the button

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core

It looks like the image takes all the space in the first grid column.

Severity: -- → S3
Status: UNCONFIRMED → NEW
Component: Layout → Layout: Grid
Ever confirmed: true

I think this bug is essentially bug 1530097 that Firefox hasn't implemented this part of the algorithm https://drafts.csswg.org/css-grid-1/#algo-spanning-flex-items. As a result, the "TEXT" that spanning across grid flexible column 2 & 3 does not get any space distributed.

Depends on: 1530097
Attached file testcase 2

Here's a slightly reduced testcase.

Chrome and WebKit shrink the teal <canvas>, so that the orange-bordered area fits nicely in the purple-bordered div; whereas in Firefox, the orange-bordered area overflows out of the purple-bordered div.

(Using grid devtools, you can see that this is because we collapse the 1fr track to have a width of 0.)

It's quite possible that this is some followup work associated with bug 1530097, yeah.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: