Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

break-inside: avoid not respected within table cells #1868

Closed
zopyx opened this issue Apr 25, 2023 · 1 comment
Closed

break-inside: avoid not respected within table cells #1868

zopyx opened this issue Apr 25, 2023 · 1 comment
Labels
bug Existing features not working as expected
Milestone

Comments

@zopyx
Copy link

zopyx commented Apr 25, 2023

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

@liZe
Copy link
Member

liZe commented Apr 29, 2023

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 liZe added the CSS Questions about how to do something with CSS label Mar 17, 2024
@liZe liZe added this to the 63.0 milestone Jul 11, 2024
@liZe liZe added bug Existing features not working as expected and removed CSS Questions about how to do something with CSS labels Jul 11, 2024
@liZe liZe closed this as completed in 126abd3 Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants