-
Notifications
You must be signed in to change notification settings - Fork 132
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
Clarified path data omission rules #827
Comments
Those would be the [1] https://svgwg.org/svg2-draft/paths.html#PathDataEllipticalArcCommands |
Thanks for your answers, it seems that many parsers do not support omitting white space. Sketch and Adobe Illustrator also cannot display correctly. |
@fsoder What version of Chrome supports omitting white spaces? |
I couldn't really answer that with precision (i.e which version), but it ought to have been supported for quite a while by now. |
The current recommendation 1.1 notes in the implementation requirements: This seems to be in minor stress with the given BNF notation and is missing in the current 2.0 draft (this needs to have the same wording as 1.1 to avoid any imcompatibilities). And it has some practical relevance both for animation and for parameter/syntax correction. |
I'm a little dizzy, so do we need further clarification in the SVG 2.0 draft? |
There are often different requirement for presentation programs, parsers and producers of content. |
The arc and sweep flags can be combined. However anybody trying to do simple svg parsing without requiring context aware parsing is going to have a bad time with that, but it's clear in the XBNF that that is absolutely valid syntax. 0020 there quite unambiguously |
The current spec is only one sentence:
The SVG compressor needs a clear specification in order to compress white space correctly. There is currently a problem with svgo. I can't be completely sure which implementation is correct.
Original svg
Use svgo
Use svgcleaner
00-.1
it seems that spaces cannot be omitted here.The text was updated successfully, but these errors were encountered: