Closed KacperMadej closed 1 year ago
Thanks for the report and repro. I am not 100% sure whether inherit
is actually a valid value, here? This is not CSS but a presentation attribute and the way I read the spec I don't think you can have it here. At least you don't need it because if you simply omit it, it results in the behavior that you are looking for and the value will be inherited from the g
element. And this actually works with the PDF export, too
Thank you for the fast reply. I am not able to find the proper SVG spec for that so this is probably not valid and, as you pointed out, not really needed. I think it is safe to close the issue.
Describe the bug An error is thrown
Error: Invalid argument passed to jsPDF.scale
whenstroke-width="inherit"
is used.To Reproduce See this playground.
Expected behavior I would have expected the PDF to look like so.![image](https://user-images.githubusercontent.com/8960408/190376279-6ea72484-2d60-4b11-b7b6-bcaff5b89c6e.png)
Desktop:
Additional context It might be a purely jsPDF bug but I am not able to recreate a simple demo to report the problem there - if this is the case and you could help with passing the bug report to the correct place I will be grateful.