diff --git a/tests/draw/test_table.py b/tests/draw/test_table.py index 6015ee202..ad95d6da5 100644 --- a/tests/draw/test_table.py +++ b/tests/draw/test_table.py @@ -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 * ''' diff --git a/weasyprint/formatting_structure/build.py b/weasyprint/formatting_structure/build.py index 2156d3d7b..0cc4507fd 100644 --- a/weasyprint/formatting_structure/build.py +++ b/weasyprint/formatting_structure/build.py @@ -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(