-
Notifications
You must be signed in to change notification settings - Fork 322
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
Removes quotes from data url properties which contain brackets #692
Comments
@peterjwest sorry, was super busy recently - I can see it happening and will look into it soon. |
no problem, thanks! |
@peterjwest could you please provide an example data URI for this bug? I need one for testing purposes. |
Here's an example:
|
I can see it happening when importing from a CSS file. Fix is coming. |
👍 👍 👍 |
When a SVG contains brackets it should always be quoted.
Out in 3.4.7, thanks @peterjwest! |
Thanks, I can verify it's working! As a side note, now the first data URL in my CSS file always has double quotes, no matter what the content is. |
Hmmm, when I remove url(...) part from SVG above I can clearly see the output without quotes. Any ideas? |
No, sorry. |
If you have a quoted
background-image
property value which contains data with brackets()
, Clean CSS will remove the quotes even though this breaks the data image e.g.I thought
properties.urlQuotes
would address this, but it seems to just strip out quotes after start and end quotes have already been stripped inurls-processor.js
:And also it looks like these are stripped earlier in the process anyway, because my URLs never have quotes at this point.
The text was updated successfully, but these errors were encountered: