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
linearGradient not exported correctly if id begins with number #138
Comments
same issue with radialGradient elements |
According to W3C, an id name cannot start with a number, so this is not a valid SVG - not supporting this is not a bug. |
svg was generated using ASP.net Telerik library with getSVGString() |
Ok, thanks - while this is basically a bug in the converter, it would make sense to handle this in that case. |
…ins with number' issue. - Do not check ID start character.
When saving SvgDocument to PNG, the gradient area is rendered as solid black.
After several tests, it seems to be directly related to the linearGradient which is beginning with a number, eg:
<linearGradient id="41cb5de8-82e7-4ab5-94d7-87e10775c848"
As a workaround i'm just adding a letter at the beginning of id and it works perfectly.
Thanks
The text was updated successfully, but these errors were encountered: