[3.4.2 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.1...3.4)
==================
+* Fixed issue [#655](https://github.com/jakubpawlowicz/clean-css/issues/655) - shorthands override merging.
* Fixed issue [#660](https://github.com/jakubpawlowicz/clean-css/issues/660) - !important token overriding.
* Fixed issue [#662](https://github.com/jakubpawlowicz/clean-css/issues/662) - !important selector reducing.
} else if (left.shorthand && right.shorthand && left.name == right.name) {
// merge if all components can be merged
+ if (!left.multiplex && right.multiplex)
+ continue;
+
if (!right.important && left.important) {
right.unused = true;
continue propertyLoop;
}
})
.addBatch({
+ 'shorthand then shorthand multiplex': {
+ 'topic': 'p{background:url(one.png);background:url(two.png) center 1px,url(three.png) center 2px}',
+ 'into': function (topic) {
+ assert.deepEqual(_optimize(topic), [
+ [['background'], ['url(one.png)']],
+ [['background'], ['url(two.png)'], ['center'], ['1px'], [','], ['url(three.png)'], ['center'], ['2px']]
+ ]);
+ }
+ },
'shorthand then longhand multiplex': {
'topic': 'p{background:top left;background-repeat:no-repeat,no-repeat}',
'into': function (topic) {