Open Bug 1251374 Opened 10 years ago Updated 3 years ago

Incorrect height of a flex item when a child has a min-height

Categories

(Core :: Layout: Block and Inline, defect)

defect

Tracking

()

Tracking Status
firefox47 --- affected

People

(Reporter: Biesinger, Unassigned)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached file Testcase
Tested in 47.0a1 (2016-02-24) / Linux In the attached testcase, the sizing of .vbox is wrong. Because .hflex has a max-height of 200px, and the align values are the default, it should "stretch" .vbox to those 200px. However in fact vbox is sized to 304px to match its child's size.
Though IE 11.0.9600.18204 does match Firefox's rendering... am I wrong?
I believe this is bug 1000957 (which is a spec-change, which explains why IE11 agrees with us). In multi-line flexbox, flex lines are sized independently of any min/max cross-size properties on the flex container. (And then they overflow according to 'align-content'.) This used to be the case for single-line, too, but it changed (and bug 1000957 is filed on updating to fix that change). Marking as a dependency for now; but this may ultimately be a dupe.
Depends on: 1000957
Attached file (wrong file, ignore) (obsolete) —
Attachment #8723739 - Attachment description: reference case → (wrong file, ignore)
Attachment #8723739 - Attachment is obsolete: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: