WeasyPrint icon indicating copy to clipboard operation
WeasyPrint copied to clipboard

break-inside: avoid not respected within table cells

Open zopyx opened this issue 2 years ago • 1 comments

Weasyprint 58.1

We have a larger table running over multiple pages. The <td> element has break-inside: avoid configured which is not respected.

Bildschirmfoto 2023-04-25 um 12 06 14

zopyx avatar Apr 25 '23 10:04 zopyx

Hi!

We didn’t find anything really specific to page breaks in table cells, and currently break-inside: avoid in tds avoids to split the content of td between pages (even if the table borders can be split, as in your example).

We chose to do this because the rendering you’re expecting can already be achieved by setting break-inside: avoid on the tr tag instead.

liZe avatar Apr 29 '23 11:04 liZe