diff --git a/weasyprint/layout/blocks.py b/weasyprint/layout/blocks.py index 9efc0b473..9f9cd8839 100644 --- a/weasyprint/layout/blocks.py +++ b/weasyprint/layout/blocks.py @@ -704,11 +704,7 @@ def block_container_layout(context, box, max_position_y, skip_stack, new_child.border_box_y() + new_child.border_height()) if (new_position_y > max_position_y and - (new_children or not page_is_empty) and - not (isinstance(child, boxes.TableBox) or ( - # For blocks with children do this per child. - isinstance(child, boxes.BlockBox) and - child.children))): + (new_children or not page_is_empty)): # The child overflows the page area, put it on the # next page. (But don’t delay whole blocks if eg. # only the bottom border overflows.)