Open Bug 1779799 Opened 2 years ago Updated 2 years ago

Combination of min-content, 1fr and column span creates broken layouts (CSS grid).

Categories

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

Firefox 102
defect

Tracking

()

People

(Reporter: patrick, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

Steps to reproduce:

I'm creating a form (labels with fields) based on a CSS grid. The field columns have 1fr. Some fields span several columns. The grid is in a scrollable area (overflow: auto), so to allow (or force) the grid to grow beyond the scrollable area's viewport I set (min-)width: min-content on it. All three options together (the min-content, fields spanning more than one column and the 1fr on some columns) cause either overflow (which the min-content never should from my understanding) or overlapping. I created a JSFiddle to demonstrate three cases: https://jsfiddle.net/Frettman/art5dkp2/24/

Actual results:

The min-content on the grid caused overflow or overlapping.

Expected results:

The min-content on the grid should not cause overflow or overlapping.

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

Component: Untriaged → Layout: Grid
Product: Firefox → Core

The severity field is not set for this bug.
:emilio, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)

I think this is bug 1530097.

Status: UNCONFIRMED → NEW
Depends on: 1530097
Ever confirmed: true
Flags: needinfo?(emilio)

The severity field is not set for this bug.
:emilio, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(emilio)
Flags: needinfo?(emilio)

I think this is a dupe but it'd be good to confirm once bug 1530097 is fixed (which is being looked into atm)

Severity: -- → S3
Priority: -- → P2
Depends on: 1799111
No longer depends on: 1799111
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: