-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
Improper css var() causes crash #974
Comments
That's a crash with announcement -- do you see the WARNING That's because And indeed, it's not the unsupported @liZe - this fallback to a unit-less parent property is fatal for all css properties that designate a length, didn't count the @sureshvv - even if WeasyPrint was able to calculate your |
Browsers seem to handle it well. The html file displays perfectly in all the browsers that I have tested on. wkhtmltopdf also handles the same html file but not as well ;) Won't the default unit be "px"? |
Yes, they dont crash. My Browser ignores the calculated dimension-less values and falls back to the initial or inherited value. |
That's not true. Almost all of the 'lengthy' properties get a sane value from Looks like only |
Minimal example to crash WeasyPrint by <style>
div {
--value: invalidValue;
border-spacing: var(--value);
}
</style>
<div>crash</div> The complete list of properties that kill WeasyPrint when defined via an invalid
|
@sureshvv would you be so kind and rename this issue to sth like "improper css var() causes crash"? |
Done. Now who wlll fix this? ;) |
|
I’ve missed your PR, even with your comment and the bold title below. I don’t know how it’s possible. Maybe it’s time to sleep. 👓 (I’m really sorry…)
😞
It’s much better than my little test. I’ll cherry-pick some of your commits for sure, thanks a lot. |
I’ve cherry-picked your test (and "parametrize" it, it’s easier to debug). As you said, (But we should probably call
|
You're right, of course -- me needing more sleep, too |
Getting this error when I process this html file
yy1.txt
The text was updated successfully, but these errors were encountered: