-
-
Notifications
You must be signed in to change notification settings - Fork 705
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
display: flex rendering issue #1311
Comments
The bug is caused by multiple useless calls to TODOs had been added in the code, as doing the layout multiple times is definitely a bad idea for performance issues, with extra side effects as this one. Here are the culprits:
|
Is there a fix to this problem? I have the same problem. It also happens when using display: flex in a element. |
Not yet. We have to rewrite a clean support of Flex (and add support of Grid), but it’s a large task, and so far we’ve had quite a lot of sponsored work to do. So, even if this feature has a high priority, it’s not done yet! |
This minimal example shows issue when using flexbox with
display: flex
.Note: I am currently using:
WeasyPrint version 52.3
Using a flex container that has two div columns which will overlap on each other if the contents of one is much longer than the other one. See
html
source and images withresult
vsexpected
.Expected pdf output:
Actual output:
I noticed a similar issue when searching before posting this issue but it is for nested flexbox: https://github.com/Kozea/WeasyPrint/issues/1171
Regards,
The text was updated successfully, but these errors were encountered: