Open Bug 1688115 Opened 4 years ago Updated 4 years ago

Flex items which are overflow containers are not reflowed with main/cross size override

Categories

(Core :: Layout: Flexbox, defect)

defect

Tracking

()

People

(Reporter: TYLin, Unassigned)

References

Details

The refactor in bug 1686603 actually changes the behavior when a flex container fragmentainer has flex items which are themselves overflow containers. We call nsContainerFrame::ReflowOverflowContainerChildren() to reflow them, but the function doesn't consider the flex item's final main size / cross size override that should be obtained from its first-in-flow, which already produces an incorrect behavior.

Then Bug 1686603 changes the item's computed main size when we remove the logic computing flex-basis in nsIFrame::ComputeSize.

One way to have the layout to produce a flex fragmentainer with overflow container children is when the flex container has a very small block-size, and the item is stretched in that axis. The crashtest 1644819.html is an example.

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