[3.0.1 / 2014-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.0.0...v3.0.1)
==================
+* Fixed issue [#410](https://github.com/GoalSmashers/clean-css/issues/410) - advanced merging and comments.
* Fixed issue [#411](https://github.com/GoalSmashers/clean-css/issues/411) - properties and important comments.
[3.0.0 / 2014-12-18](https://github.com/jakubpawlowicz/clean-css/compare/v2.2.22...v3.0.0)
// e.g. a{display:inline-block;display:-moz-inline-box}
// however if `mergeablePosition` yields true then the rule does not apply
// (e.g merging two adjacent selectors: `a{display:block}a{display:block}`)
- if (aggressiveMerging && _property != lastProperty || mergeablePosition(i)) {
+ if (aggressiveMerging && property !== '' && _property != lastProperty || mergeablePosition(i)) {
while (true) {
toOverridePosition = properties.indexOf(_property, toOverridePosition);
if (toOverridePosition == -1)
'div{color:red;/*!comment*/display:block}',
'div{color:red;/*!comment*/display:block}'
],
+ 'important between and after values': [
+ 'div{color:red;/*!comment1*/display:block;/*!comment2*/}',
+ 'div{color:red;/*!comment1*/display:block/*!comment2*/}'
+ ],
'two important after value': [
'div{color:red;/*!1*//*!2*/}',
'div{color:red/*!1*//*!2*/}'