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)
Tracking
()
People
(Reporter: dholbert, Unassigned)
References
Details
Attachments
(3 files)
(originally reported as https://github.com/webcompat/web-bugs/issues/55314 )
STR:
- 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.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
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).
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Attached a screenshot of the testcase in comment 0. This should be fixed by bug 1316534.
Updated•5 years ago
|
Description
•