-
Notifications
You must be signed in to change notification settings - Fork 259
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
Parser error with SVG datauri inlining #67
Comments
The underlying issues (at least I'm pretty sure) is that the parsing for a value stops at the closing A shorter example that reproduces the issue (I'm pretty sure it is the same issue, just a slightly different error) is this: |
Actually you can reproduce the exact same error message ( |
Hi, Is there any advance on this issue ? I encounter the same problem with SVG inlined which I have reduced to the following "conditions" : It seems to occur when there's more than one call to an SVG in an inlined CSS.
|
I got this issue while using purifycss and used |
I hate to open an unclear/ambiguous issue, but I've been unable to track down what's actually going wrong here.
With the following CSS, simply running
css.parse()
is blowing up:It seems to only be occurring when there are multiple rules on one line (i.e. minified) that contain the string "charset", only when the SVG is URL encoded. I've stripped it down as much as I can to get it to a readable size (original file: http://www.shopify.com/assets2/application-bf82c00b0b5b610626f416a6ccc3d6aa.css).
Any thoughts on what might be going on here? I'll try to take a closer look in the next few days but figured I'd open the issue in the meantime. Thanks!
The text was updated successfully, but these errors were encountered: