1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-09-11 20:47:56 +03:00

Merge pull request #2051 from kygoh/fix_issue_2013

Fix computed values on table element overwritten after first page in running tables
This commit is contained in:
Guillaume Ayoub 2024-02-02 14:56:05 +01:00 committed by GitHub
commit e64b69cf1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View File

@ -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 * '''

View File

@ -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(