* Fixed issue [#436](https://github.com/jakubpawlowicz/clean-css/issues/436) - refactors URI rewriting.
+[3.2.2 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.2.1...3.2)
+==================
+
+* Fixed issue [#537](https://github.com/jakubpawlowicz/clean-css/issues/537) - regression in simple optimizer.
+
[3.2.1 / 2015-04-20](https://github.com/jakubpawlowicz/clean-css/compare/v3.2.0...v3.2.1)
==================
}
var valueMinifiers = {
- 'background': function (value) {
- return value == 'none' || value == 'transparent' ? '0 0' : value;
+ 'background': function (value, index, total) {
+ return index == 1 && total == 2 && (value == 'none' || value == 'transparent') ? '0 0' : value;
},
'font-weight': function (value) {
if (value == 'normal')
else
return value;
},
- 'outline': function (value) {
- return value == 'none' ? '0' : value;
+ 'outline': function (value, index, total) {
+ return index == 1 && total == 2 && value == 'none' ? '0' : value;
}
};
value = property[j][0];
if (valueMinifiers[name])
- value = valueMinifiers[name](value);
+ value = valueMinifiers[name](value, j, m);
value = whitespaceMinifier(name, value);
value = precisionMinifier(name, value, options.precision);
'any other': [
'a{background:red}',
[['background', 'red']]
+ ],
+ 'none to other': [
+ 'a{background:transparent no-repeat}',
+ [['background', 'transparent', 'no-repeat']]
]
})
)
'any other': [
'a{outline:10px}',
[['outline', '10px']]
+ ],
+ 'none and any other': [
+ 'a{outline:none solid 1px}',
+ [['outline', 'none', 'solid', '1px']]
]
})
)