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

page-break-inside: avoid on tall elements leads to infinite loop #255

Closed
vojkny opened this issue Jun 10, 2015 · 2 comments
Closed

page-break-inside: avoid on tall elements leads to infinite loop #255

vojkny opened this issue Jun 10, 2015 · 2 comments
Labels
bug Existing features not working as expected crash Problems preventing documents from being rendered

Comments

@vojkny
Copy link

vojkny commented Jun 10, 2015

When you create a very tall element with page-break-inside: avoid which does not fit to page, it leads to infinite looping and weasyprint never produce any result.

Test case:

<div style="page-break-inside: avoid;">
... lot of contents
</div>
@liZe liZe added crash Problems preventing documents from being rendered bug Existing features not working as expected labels Mar 8, 2016
@vojkny
Copy link
Author

vojkny commented Aug 2, 2017

I found out that in some cases it will work for <div>. But it will never work for <tbody> as follows:

<table>
<tbody style="page-break-inside: avoid;">
<tr><td>... lot of contents</td></tr>
<tr><td>... lot of contents</td></tr>
<tr><td>... lot of contents</td></tr>
...
</tbody>
</table>

@liZe
Copy link
Member

liZe commented Aug 18, 2017

Let's merge this issue with #273.

@liZe liZe closed this as completed Aug 18, 2017
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 crash Problems preventing documents from being rendered
Projects
None yet
Development

No branches or pull requests

2 participants