==================
* Fixed issue [#551](https://github.com/jakubpawlowicz/clean-css/issues/551) - edge case in restructuring.
+* Fixed issue [#558](https://github.com/jakubpawlowicz/clean-css/issues/558) - units in same selector merging.
[3.2.6 / 2015-04-28](https://github.com/jakubpawlowicz/clean-css/compare/v3.2.5...v3.2.6)
==================
var moved = topToBottom ? tokenOne : tokenTwo;
var target = topToBottom ? tokenTwo : tokenOne;
var movedProperties = extractProperties(moved);
+ var joinAt;
while (from != to) {
var traversedProperties = extractProperties(tokens[from]);
continue directionIterator;
}
- var joinAt = topToBottom ? [target[2].length] : [moved[2].length];
if (topToBottom) {
+ joinAt = [moved[2].length];
Array.prototype.push.apply(moved[2], target[2]);
target[2] = moved[2];
} else {
+ joinAt = [target[2].length];
Array.prototype.push.apply(target[2], moved[2]);
}
]
}, { advanced: true, aggressiveMerging: true })
)
+ .addBatch(
+ optimizerContext('advanced on & aggressive merging on - IE8 mode', {
+ 'units': [
+ '.one{width:1px;width:1rem;display:block}.two{color:red}.one{width:2px;width:1.1rem}',
+ '.one{display:block;width:2px;width:1.1rem}.two{color:red}'
+ ]
+ }, { advanced: true, aggressiveMerging: true, compatibility: 'ie8' })
+ )
.addBatch(
optimizerContext('advanced on & aggressive merging off', {
'repeated' : [