Closed Bug 1652862 Opened 5 years ago Closed 5 years ago

Flex container doesn't properly shrinkwrap content height, in case with large flex-basis and replaced element (img or canvas)

Categories

(Core :: Layout: Flexbox, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1316534

People

(Reporter: dholbert, Unassigned)

References

Details

Attachments

(3 files)

Attached file testcase 1

(originally reported as https://github.com/webcompat/web-bugs/issues/55314 )

STR:

  1. Load attached testcase.

EXPECTED RESULTS:
The teal box should be tall enough to contain the purple canvas.

ACTUAL RESULTS:
The teal box is not tall enough to contain the purple canvas.

This might be a subtle version of bug 1136312 (note that if I add "min-width:50%" on the canvas, we get the expected result), so setting that as a dependency.

Attachment #9163609 - Attachment description: test.html → testcase 1

For the record: if I remove height:100% from the canvas, then it shrinks to fit inside the teal-bordered area (and both are relatively small).

Chrome renders this testcase the same way as they render testcase 1, though (with the canvas fitting but with it & the teal-bordered area being taller).

Severity: -- → S3

Attached a screenshot of the testcase in comment 0. This should be fixed by bug 1316534.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: