==================
* Refixed issue [#471](https://github.com/jakubpawlowicz/clean-css/issues/471) - correct order after restructuring.
+* Fixes issue [#466](https://github.com/jakubpawlowicz/clean-css/issues/466) - rebuilding background shorthand.
* Fixes issue [#462](https://github.com/jakubpawlowicz/clean-css/issues/462) - escaped apostrophes in selectors.
[3.1.1 / 2015-02-27](https://github.com/jakubpawlowicz/clean-css/compare/v3.1.0...v3.1.1)
var values = new Splitter(',').split(token.value);
var components = [];
+ // TODO: we should be rather clonging elements than reusing them!
for (var i = 0, l = values.length; i < l; i++) {
token.value = values[i];
components.push(splitfunc(token));
}
+ token.value = values.join(',');
+
for (var j = 0, m = components[0].length; j < m; j++) {
for (var k = 0, n = components.length, newValues = []; k < n; k++) {
newValues.push(components[k][j].value);
--- /dev/null
+div{background:url(image.png);background:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5)),url(image.png)}
--- /dev/null
+div {
+ background: url(image.png);
+ background-image: linear-gradient(rgba(0,0,0,.1), rgba(0,0,0,.5)), url(image.png);
+}