==================
* Fixed issue [#734](https://github.com/jakubpawlowicz/clean-css/issues/734) - `--root` option edge case.
+* Fixed issue [#758](https://github.com/jakubpawlowicz/clean-css/issues/758) - treats empty rule as unmergeable.
[3.4.11 / 2016-04-01](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.10...v3.4.11)
==================
selectors: {
adjacentSpace: false, // div+ nav Android stock browser hack
ie7Hack: false, // *+html hack
- special: /(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right|:placeholder|:host|::content|\/deep\/|::shadow)/ // special selectors which prevent merging
+ special: /(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:dir\([a-z-]*\)|:first(?![a-z-])|:fullscreen|:left|:read-only|:read-write|:right|:placeholder|:host|::content|\/deep\/|::shadow|^,)/ // special selectors which prevent merging
},
units: {
ch: true,
selectors: {
adjacentSpace: false,
ie7Hack: false,
- special: /(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow)/
+ special: /(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow|^,)/
},
units: {
ch: false,
selectors: {
adjacentSpace: false,
ie7Hack: true,
- special: /(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow)/
+ special: /(\-moz\-|\-ms\-|\-o\-|\-webkit\-|:focus|:before|:after|:root|:nth|:first\-of|:last|:only|:empty|:target|:checked|::selection|:enabled|:disabled|:not|:placeholder|:host|::content|\/deep\/|::shadow|^,)/
},
units: {
ch: false,
'two rules with latter with suffix properties': [
'a{display:none}a{display:none;visibility:hidden}',
'a{display:none;visibility:hidden}'
+ ],
+ 'no rule after comma': [
+ 'h1{color:#000},h2{color:#000}',
+ 'h1{color:#000},h2{color:#000}'
+ ],
+ 'no rule after comma with comma last': [
+ 'h1{color:#000}h2,{color:#000}',
+ 'h1{color:#000},h2{color:#000}'
]
})
)
'of element selectors with an empty class selector in between': [
'p{color:red}.a{}div{color:red}',
'div,p{color:red}'
+ ],
+ 'no rule after comma': [
+ 'h1{color:#000}div{color:red},h2{color:#000}',
+ 'h1{color:#000}div{color:red},h2{color:#000}'
]
})
)
'with different vendor prefixed value group': [
'a{-moz-box-sizing:content-box;box-sizing:content-box}div{color:red}p{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}',
'a{-moz-box-sizing:content-box;box-sizing:content-box}div{color:red}p{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}'
+ ],
+ 'no rule after comma': [
+ 'h1{color:#000}div{color:red},h2{color:#000;display:block}',
+ 'h1{color:#000}div{color:red},h2{color:#000;display:block}'
]
})
)