-
-
Notifications
You must be signed in to change notification settings - Fork 710
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
TypeError: unsupported operand type(s) for -: 'Dimension' and 'float' #225
Comments
Simple example:
Looks like the unknown units break the computed values. |
This is wrong, unknow units should be rejected at parse time. See the WeasyPrint/weasyprint/css/validation.py Lines 885 to 887 in 9249f8d
|
And note that in "validator" functions, returning |
Oh, maybe the solution was to implement the rem unit? |
Implementing |
(That was both a joke AND a hint if you don't know how to spend you next 15 minutes :p) |
I'm confused. This error still occurs, and weasyprint crashes when using zurb foundation. Are you saying weasyprint will not support |
It looks like it's another error, I've opened a new ticket (#260).
We are just saying that we didn't find the time to read the spec, write the code and make tests pass ;). |
I can reproduce this error by running:
weasyprint http://foundation.zurb.com/docs/ out.pdf
It also crashes on my other website (which also uses foundation) with the same error. There is also a bunch of parse errors before the exception is raised.
The text was updated successfully, but these errors were encountered: