You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 underlying issues (at least I'm pretty sure) is that the parsing for a value stops at the closing ) of matrix(, inside the quoted string. This is because as soon as it finds an open ( it searches for the closest matching ) (see this line).
A shorter example that reproduces the issue (I'm pretty sure it is the same issue, just a slightly different error) is this: .a{ b: url(")"); } .c { d: url(";"); }. Remove the ) in ")" and it parses fine.
Activity
conradz commentedon Mar 19, 2015
The underlying issues (at least I'm pretty sure) is that the parsing for a value stops at the closing
)ofmatrix(, inside the quoted string. This is because as soon as it finds an open(it searches for the closest matching)(see this line).A shorter example that reproduces the issue (I'm pretty sure it is the same issue, just a slightly different error) is this:
.a{ b: url(")"); } .c { d: url(";"); }. Remove the)in")"and it parses fine.conradz commentedon Mar 19, 2015
Actually you can reproduce the exact same error message (
property missing ':') with this:.a { b: url(")"); d: url(";a"); }.oilvier commentedon Nov 3, 2016
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.
sadovnychyi commentedon Nov 10, 2017
I got this issue while using purifycss and used
postcss-base64to encode any inlined SVG into base64 as a workaround until #110 is merged.strarsis commentedon Oct 20, 2023
New editor styles transformation approach using PostCSS is now merged (many thanks @zaguiini)!