diff --git a/layout/generic/nsFlexContainerFrame.cpp b/layout/generic/nsFlexContainerFrame.cpp index 8f691749e11c..8e2cc2b9fe63 100644 --- a/layout/generic/nsFlexContainerFrame.cpp +++ b/layout/generic/nsFlexContainerFrame.cpp @@ -3885,7 +3885,11 @@ nsFlexContainerFrame::ReflowFlexItem(nsPresContext* aPresContext, "We gave flex item unconstrained available height, so it " "should be complete"); - childReflowState.ApplyRelativePositioning(&aFramePos, aContainerWidth); + LogicalMargin offsets = + childReflowState.ComputedLogicalOffsets().ConvertTo(outerWM, wm); + nsHTMLReflowState::ApplyRelativePositioning(aItem.Frame(), outerWM, + offsets, &aFramePos, + aContainerWidth); FinishReflowChild(aItem.Frame(), aPresContext, childDesiredSize, &childReflowState,