diff --git a/layout/generic/nsBlockFrame.cpp b/layout/generic/nsBlockFrame.cpp index 2203f0744a8f..14186883779e 100644 --- a/layout/generic/nsBlockFrame.cpp +++ b/layout/generic/nsBlockFrame.cpp @@ -2670,10 +2670,10 @@ void nsBlockFrame::ReflowDirtyLines(BlockReflowState& aState) { if (!line->IsDirty()) { const bool isPaginated = // Last column can be reflowed unconstrained during column balancing. - // Hence the additional GetPrevInFlow() and GetNextInFlow() as a - // fail-safe fallback. + // Hence the additional NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR bit check + // as a fail-safe fallback. aState.mReflowInput.AvailableBSize() != NS_UNCONSTRAINEDSIZE || - GetPrevInFlow() || GetNextInFlow() || + HasAnyStateBits(NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR) || // Table can also be reflowed unconstrained during printing. aState.mPresContext->IsPaginated(); if (isPaginated) { diff --git a/testing/web-platform/tests/css/css-break/float-009-ref.html b/testing/web-platform/tests/css/css-break/float-009-ref.html new file mode 100644 index 000000000000..9e117c49c2ba --- /dev/null +++ b/testing/web-platform/tests/css/css-break/float-009-ref.html @@ -0,0 +1,20 @@ + + + + + + + + +