Skip to content

Commit 48d8632

Browse files
committed
Avoid not in flow children to compute box height
1 parent 03edd01 commit 48d8632

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

weasyprint/layout/columns.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ def create_column_box(children):
187187
next_box, _, _, _, _ = block_box_layout(
188188
context, column_box, box.content_box_y(),
189189
column_skip_stack, containing_block, True, [], [], [])
190-
next_box_size = next_box.children[0].margin_height()
190+
assert next_box.children[-1].is_in_normal_flow()
191+
next_box_size = next_box.children[-1].margin_height()
191192
else:
192193
empty_space = next_box_size = 0
193194

0 commit comments

Comments
 (0)