Skip to content

Commit

Permalink
Merge pull request #2051 from kygoh/fix_issue_2013
Browse files Browse the repository at this point in the history
Fix computed values on table element overwritten after first page in running tables
  • Loading branch information
liZe authored Feb 2, 2024
2 parents 6e835e2 + 63ab614 commit e64b69c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion tests/draw/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,6 @@ def test_running_elements_table_border_collapse_span(assert_pixels):
''')


@pytest.mark.xfail
@assert_no_logs
def test_running_elements_table_border_collapse_margin(assert_pixels):
assert_pixels(2 * '''
Expand Down
1 change: 1 addition & 0 deletions weasyprint/formatting_structure/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,7 @@ def wrap_table(box, children):
grid_height += len(group.children)

table = box.copy_with_children(row_groups)
table.style = table.style.copy()
table.column_groups = tuple(column_groups)
if table.style['border_collapse'] == 'collapse':
table.collapsed_border_grid = collapse_table_borders(
Expand Down

0 comments on commit e64b69c

Please sign in to comment.