-
-
Notifications
You must be signed in to change notification settings - Fork 680
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
Incorrect rendering of flex boxes #1208
Comments
I'm having a similar issue with flexbox. All that is required is two columns that flow side by side down the document (they do not flow into each other) and across page breaks. Instead, the second column doesn't start until after the first page. This is such a basic layout I'm very surprised it does not work at all. This is the code I'm using to debug in the weasyprint renderer.
|
Also "considerably less bad" with #2231 but not entirely fixed. Now looks like this: |
The difference with the browser seems to be the default page margin. With
That’s another issue, see #1967. Closing, as this issue is quite old and seems to be resolved now. Feel free to add comments if needed! |
I can't get weasyprint to correctly render my template.
Eg html:
This is what was rendered: weasyPrintGeneratedPDF.pdf
I then removed
%
forpx
to fit an A4 sheet assuming relative values could be the problem. The result is much better but still wrong.Rewritten html:
If you print this html directly from the browser as a PDF, this fits nicely on an A4 sheet. See here: whatIExpect.pdf.
Weasyprint's rendering on the other hand, puts the right section below the left section. See here: whatWeasyPrintGIves.pdf
Please fix.
The text was updated successfully, but these errors were encountered: