diff --git a/components/layout_2020/flow/mod.rs b/components/layout_2020/flow/mod.rs index 22c23253be4..cb88ecebe6a 100644 --- a/components/layout_2020/flow/mod.rs +++ b/components/layout_2020/flow/mod.rs @@ -482,7 +482,7 @@ fn layout_in_flow_non_replaced_block_level( let end_margin_can_collapse_with_children = block_is_same_formatting_context && pbm.padding.block_end == Length::zero() && pbm.border.block_end == Length::zero() && - block_size == LengthOrAuto::Auto && + block_size.auto_is(|| Length::zero()) == Length::zero() && min_box_size.block == Length::zero(); let mut clearance = Length::zero();