diff --git a/components/layout/table.rs b/components/layout/table.rs index 269267010a6..fee95d1af7a 100644 --- a/components/layout/table.rs +++ b/components/layout/table.rs @@ -1147,7 +1147,8 @@ impl<'table> Iterator for TableCellStyleIterator<'table> { impl<'table> TableCellStyleInfo<'table> { fn build_display_list(&self, mut state: &mut DisplayListBuildState) { - if !self.cell.visible { + if !self.cell.visible || self.cell.block_flow.fragment.style() + .get_inheritedbox().visibility != Visibility::Visible { return } let border_painting_mode = match self.cell.block_flow