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

Really slow rendering of balanced 3 column layouts and 2 column breaking blocks #1689

Closed
LukasKlement opened this issue Jul 19, 2022 · 2 comments

Comments

@LukasKlement
Copy link

Similar to the issue #1642 - I have found another infinite loop with 3-column layouts, when column-fill is set to balance and there are exactly two direct child blocks of the columned div with page-break-before: always; set.

In the above scenario, with a single-page PDF:
Rendering with column-fill: balance;: >100s
Rendering with column-fill: auto;: <10s

WeasyPrint version: v56.0

@liZe
Copy link
Member

liZe commented Aug 18, 2022

Hi! Thanks for your bug report.

I’ve tried to reproduce this problem with this code, but it works with version 56:

<style>
  div {columns: 3}
  article {page-break-before: always}
</style>
<div>
  <article>1</article>
  <article>2</article>
</div>

Could you please provide a sample that’s broken for you?

@liZe
Copy link
Member

liZe commented Sep 16, 2022

Please add a comment if you can provide a sample that’s broken for you with current master branch.

@liZe liZe closed this as completed Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants