Table overflow background and border
When a cell with long text is too large for the page, a page break occurs. This works well, but when the cell has a high rowspan, the table background and border are broken too early (the cell background and border do work correctly, but only for the long cell).
See the following picture:
Example html
<head>
<style>
table {
background: yellow;
}
table, td {
border: 1px solid black;
}
</style>
</head>
<body>
<table>
<tr>
<td>A</td>
<td rowspan="5" style="width: 100px;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</td>
</tr>
<tr>
<td>B</td>
</tr>
<tr>
<td>C</td>
</tr>
<tr>
<td>D</td>
</tr>
<tr>
<td>E</td>
</tr>
<tr>
<td>F</td>
<td rowspan="5" style="width: 100px;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</td>
</tr>
<tr>
<td>G</td>
</tr>
<tr>
<td>H</td>
</tr>
<tr>
<td>I</td>
</tr>
<tr>
<td>J</td>
</tr>
</table>
</body>
Hi!
Thanks for this bug report. It really looks like #1102, do you think that it’s the same problem?
It might be, it's certainly very similar, but then almost reverse. (In #1102 the cell has a background color instead of the table, and the problem is that the color isn't repeated on the next page instead of that it's not extended enough on the first page.)
Although I can't seem to replicate that issue with my own code:
(The F2 cell has a rowspan of 5 as well and only that cell has a background color. It is repeated correctly after the page break. Though one might want the cell to be extended on the first page as well.)
In any case, I can't speak to whether or not they have the same cause, as I'm not familiar with the WeasyPrint code.