-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Simple flex with fit-content looks different in browser printing pdf and weasyprint #1727
Comments
Hi! Thanks for your bug report. There are 2 different problems in this example:
Unfortunately, there’s no easy workaround, other than waiting for these two problems to be fixed. Improvements to the flexbox layout are definitely on our todo-list, but the level 3 features of box sizing may take more time to come. |
Looking forward to see those nice features being implemented in weasyprint ! |
Hey @liZe , how are you? First thanks for the amazing work you guys do. Do you know a workaround or the only way is not to use flex for now? Thanks and sorry if the question is dumb! |
Hi! 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. We can’t give a reliable date for this feature as we don’t know yet which features will be sponsored in the next months. |
This is now somewhat less bad since #2231 but not totally correct either (because |
Hey, thank you for your work and help! I hope fit-content support gets added someday so I can migrate to weasy print. |
While trying to use flex items with fit-content style I'm trying to find something that works as expected.
Using weasyprint 56.1.
E.g. the following looks good in browser and when printed with browser, but looks odd with weasyprint:
In browser the html looks like this:
When printing it in browser the resulting pdf looks like this:
Weasyprint generates something that looks like this:
Is there any workaround to make weasyprint generated equivalent output to browser ?
The text was updated successfully, but these errors were encountered: