diff --git a/components/layout_2020/table/layout.rs b/components/layout_2020/table/layout.rs index a056f632118..c14432856fa 100644 --- a/components/layout_2020/table/layout.rs +++ b/components/layout_2020/table/layout.rs @@ -74,11 +74,10 @@ impl CellLayout { /// Whether the cell is considered empty for the purpose of the 'empty-cells' property. fn is_empty_for_empty_cells(&self) -> bool { - !self - .layout + self.layout .fragments .iter() - .any(|fragment| !matches!(fragment, Fragment::AbsoluteOrFixedPositioned(_))) + .all(|fragment| matches!(fragment, Fragment::AbsoluteOrFixedPositioned(_))) } }