This is related to #570 when a no-url imports are mixed with url ones.
* Fixed issue [#575](https://github.com/jakubpawlowicz/clean-css/issues/575) - missing directory as a `target`.
* Fixed issue [#577](https://github.com/jakubpawlowicz/clean-css/issues/577) - `background-clip` into shorthand.
* Fixed issue [#579](https://github.com/jakubpawlowicz/clean-css/issues/579) - `background-origin` into shorthand.
+* Fixed issue [#580](https://github.com/jakubpawlowicz/clean-css/issues/580) - mixed `@import` processing.
* Fixed issue [#582](https://github.com/jakubpawlowicz/clean-css/issues/582) - overriding with prefixed values.
* Fixed issue [#583](https://github.com/jakubpawlowicz/clean-css/issues/583) - URL quoting for SVG data.
tempData.push(data.substring(cursor, nextStart));
nextEnd = data.indexOf(withQuote, nextStart + 1);
- if (nextEnd == -1)
+ if (nextEnd == -1) {
+ cursor = nextStart;
break;
+ }
var url = data.substring(nextStart, nextEnd + 1);
callback(url, tempData);
'should give right output': function (minified) {
assert.equal(minified.styles, '.one{color:red}.three{color:#0f0}.four{color:#00f}.two{color:#fff}');
}
+ },
+ 'with two import URLs when one is a string plus a callback 123': {
+ 'topic': function () {
+ new CleanCSS().minify({
+ 'main.css': {
+ styles: '@import "test/fixtures/partials/one.css";\n@import url(test/fixtures/partials/three.css);'
+ }
+ }, this.callback);
+ },
+ 'should give right output': function (error, minified) {
+ assert.equal(minified.styles, '.one{color:red}.three{background-image:url(test/fixtures/partials/extra/down.gif)}');
+ }
}
},
'with remote paths': {