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$1');
+ replace(/box-shadow:0 0 0( 0)?([^\.])/g, 'box-shadow:0 0$2');
replace(/:0 0 0 0([^\.])/g, ':0$1');
replace(/([: ,=\-])0\.(\d)/g, '$1.$2');
'div{clip:rect(0px 0px 0px 10px)}',
'div{clip:rect(0 0 0 10px)}'
],
- 'box shadow zeros': [
+ 'box shadow zeros with four zeros': [
'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}'
+ ],
'rems': [
'div{width:0rem;height:0rem}',
'div{width:0;height:0}'