We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There seems to be an issue with calculating table width even after #2087 The results differ between WeasyPrint and how browsers render the tables.
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="width: 100%;-webkit-text-size-adjust: none;margin: 0;padding: 0;color: #000;font-family: Verdana,sans-serif;font-size: 11pt;line-height: normal;text-align: left"> <div style="font-family: Verdana,sans-serif; font-size: 11pt; min-height: 1em; text-align: justify"> <table border="0" style="height: 67px; width: 100%; background-color: #ffffff; margin-left: auto; margin-right: auto"> <tbody style=""> <tr style="height: 33px"> <td style="padding: 0; border-collapse: collapse; width: 798px; height: 33px;"> <table border="0" style="height: 168px; width: 100%; border-collapse: collapse; background-color: #cad7e0; border-style: none"> <tbody style=""> <tr style="height: 168px"> <td style="padding: 0; border-collapse: collapse; width: 100%; height: 168px; border-style: none;"> <table border="0" style="height: 168px; width: 362px; border-collapse: collapse; background-color: #cad7e0; border-style: none; float: right"> <tbody style=""> <tr style=""> <td style="padding: 0; border-collapse: collapse; width: 362px; border-style: none;"></td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </td> </tr> <tr style="height: 34px"> <td style="padding: 0; border-collapse: collapse; width: 640px; height: 34px;"> <div style="font-family: Verdana,sans-serif; font-size: 11pt; text-align: left; min-height: 1em"> </div> <table border="0" height="22" style="height: 14px; width: 90%; border-collapse: collapse; border-style: none; margin-left: auto; margin-right: auto"> <tbody style=""> <tr style="height: 18px"> <td style="padding: 0; border-collapse: collapse; width: 600px; height: 18px; border-style: none;"><div style="min-height: 1em">test</div></td> </tr> </tbody> </table> <div style="min-height: 1em"> </div> </td> </tr> </tbody> </table> </div> </body></html>
WeasyPrint:
Chrome:
The html is dynamic it comes from tinymce editor so we don't have 100% control over it.
The text was updated successfully, but these errors were encountered:
It’s not a problem with the columns widths, it’s because of the float in a row with fixed height.
<table style="width: 200px; background-color: green"> <tr> <td style="height: 100px"> <div style="height: 100px; width: 100px; background-color: blue; float: right"></div> </td> </tr> </table>
Sorry, something went wrong.
9213f62
Thanks for the report! It should work now, feedback is welcome.
No branches or pull requests
There seems to be an issue with calculating table width even after #2087
The results differ between WeasyPrint and how browsers render the tables.
WeasyPrint:
Chrome:
The html is dynamic it comes from tinymce editor so we don't have 100% control over it.
The text was updated successfully, but these errors were encountered: