-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Trim issue in parseStyleString while parseSVGdocument #2241
Comments
* Added: Generalized fallback; does a lookup on the Blob constructor * Fix: Wait for lazy images, triggers capture callback only when all images have been fully loaded * Discovered: [Safari 5 issue](fabricjs/fabric.js#2241) please adapt fabric.js to solve it
sorry can you post the svg you where parsing? maybe there is some malfoned style. |
looks like the ending whitespace on the SVG element makes the trouble, also reproducible in modern browser e.G first example. http://codepen.io/amcharts/full/48deb24b8ea12573c230eec57194bb53/ |
i confirm the space is breaking import. |
thanks for hanging in |
Safari 5 fails on "parseSVGdocument" while it tries to "parseStyleString".
You except always to have at least two elements while splitting the "chunk" but for some reason in Safari 5 it returns just a single empty string, not sure why was to lazy to fully trace it down.
Following simple check worked for me on Line: 3089
The text was updated successfully, but these errors were encountered: