Skip to content
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

\0, \9 and url(/my/path) without quotes breaks the parser #303

Open
olemarius opened this issue Feb 19, 2020 · 1 comment
Open

\0, \9 and url(/my/path) without quotes breaks the parser #303

olemarius opened this issue Feb 19, 2020 · 1 comment

Comments

@olemarius
Copy link

olemarius commented Feb 19, 2020

Examples
The following cases cause error when parsing css files.
margin-top: 1px \9; // IE8-9
width: 220px \0; //IE9 and below

In my case the \9 hack is used in boostrap3, and \0 hack is used in boostrap-select plugin, so the workaround would be a find a way to strip the lines containing these hacks and add '' to url().

@olemarius
Copy link
Author

Workaround is to use https://github.com/ben-eb/stylehacks or wait for cssnano to support this in v4.2 cssnano/cssnano#263

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant