+[2.2.2 / 2014-xx-xx](https://github.com/GoalSmashers/clean-css/compare/v2.2.1...v2.2.2)
+==================
+
+* Fixed issue [#297](https://github.com/GoalSmashers/clean-css/issues/297) - box-shadow zeros minification.
+
[2.2.1 / 2014-06-14](https://github.com/GoalSmashers/clean-css/compare/v2.2.0...2.2.1)
==================
replace(/background:(?:none|transparent)([;}])/g, 'background:0 0$1');
// multiple zeros into one
- replace(/box-shadow:0 0 0( 0)?([^\.])/g, 'box-shadow:0 0$2');
+ replace(/box-shadow:0 0 0 0([^\.])/g, 'box-shadow:0 0$1');
replace(/:0 0 0 0([^\.])/g, ':0$1');
replace(/([: ,=\-])0\.(\d)/g, '$1.$2');
'a{box-shadow:0 0 0 0}',
'a{box-shadow:0 0}'
],
- 'box shadow with three zeros ': [
- 'a{box-shadow:0 0 0}',
- 'a{box-shadow:0 0}'
+ 'box shadow with two zeros': 'a{box-shadow:0 0}',
+ 'box shadow with three zeros and a fraction': [
+ 'a{box-shadow:0 0 0 0.15em #EBEBEB}',
+ 'a{box-shadow:0 0 0 .15em #EBEBEB}'
],
+ 'box shadow with three zeros and a value': 'a{box-shadow:0 0 0 15px #EBEBEB}',
'rems': [
'div{width:0rem;height:0rem}',
'div{width:0;height:0}'