-
Notifications
You must be signed in to change notification settings - Fork 18
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
a
statement can have 6 numbers
#40
Comments
I've just come across this, the issue seems to be that some svg generators assume that boolean flags need no separators between values. In the above example: is equivalent to |
Do you think it's worth accepting this strange a version? |
The cause in our case i've determined to be SVGO. SVGO feels that it is a correct interpretation of the specs - see svg/svgo#1137 I'm happy enough working around it given that i know what's causing it now, but if svg-path-properties is implementing SVG 1.1 then it sounds like it's part of the spec (it wasn't in SVG 1.0).
Our path to coming across this issue was using It looks like a pretty decent amount of work to the parser though for a somewhat specific, workaroundable scenario, so I wouldn't blame you for not making a change here (i also don't think i'd have time to write a PR for this either). |
Results in
Error: Malformed path data: "a" must have 7 elements and has 6: a6.69 6.69 0 01-5.1 1.6
.Apparently it is valid SVG, it is rendered by Chrome.
If I change the validation, it works:
I'll send a PR for it.
The text was updated successfully, but these errors were encountered: