selectivizr icon indicating copy to clipboard operation
selectivizr copied to clipboard

@import rules with minified CSS that contains other 'url' rules will fail to parse @import's url

Open jesstelford opened this issue 11 years ago • 1 comments

Examples include:

@import url("min-import-url-quoted-double.css");.minified{background:url("css/nested/test.png");}

/* Which will incorrectly match the URL of the css file as: */
min-import-url-quoted-double.css");.minified{background:url("css/nested/test.png
@import "min-import-quoted-double.css";.minified{background:url("css/nested/test.png");}

/* Which will incorrectly match the URL of the css file as: */
min-import-quoted-double.css";.minified{background:url("css/nested/test.png

This fix updates the @import regex to fix this issue.

Note: See the tests/master/index.html for the unit tests, which have only been tested in IE8!

jesstelford avatar May 28 '13 08:05 jesstelford

@keithclark disappeared so I'm going to try and maintain this project at https://github.com/corysimmons/selectivizr2

Would you please reopen/rebase your PR over there?

corysimmons avatar Feb 06 '16 07:02 corysimmons