Why:
* Apparently `width` and `max-width` `0%` value cannot be turned into
`0`, see: https://codepen.io/judowalker/pen/xrMxWj
* Fixed issue [#895](https://github.com/jakubpawlowicz/clean-css/issues/895) - ignoring specific styles.
* Fixed issue [#947](https://github.com/jakubpawlowicz/clean-css/issues/947) - selector based filtering.
+[4.1.7 / 2017-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v4.1.6...4.1)
+==================
+
+* Fixed issue [#957](https://github.com/jakubpawlowicz/clean-css/issues/957) - `0%` minification of `width` property.
+
[4.1.6 / 2017-07-08](https://github.com/jakubpawlowicz/clean-css/compare/v4.1.5...v4.1.6)
==================
return value;
}
- if (value.indexOf('%') > 0 && (name == 'height' || name == 'max-height')) {
+ if (value.indexOf('%') > 0 && (name == 'height' || name == 'max-height' || name == 'width' || name == 'max-width')) {
return value;
}
'a{margin:0}'
],
'-0% to 0': [
- 'a{width:-0%}',
- 'a{width:0}'
+ 'a{min-width:-0%}',
+ 'a{min-width:0}'
],
'missing': [
'a{opacity:1.}',
'max-height': [
'a{max-height:0%}',
'a{max-height:0%}'
+ ],
+ 'width': [
+ 'a{width:0%}',
+ 'a{width:0%}'
+ ],
+ 'min-width': [
+ 'a{min-width:0%}',
+ 'a{min-width:0}'
+ ],
+ 'max-width': [
+ 'a{max-width:0%}',
+ 'a{max-width:0%}'
]
}, { level: 1 })
)