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:
commit
e64b69cf1f
@ -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 * '''
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user