Apparently IE10-11 do not like it.
+[3.3.2 / 2015-xx-xx](https://github.com/jakubpawlowicz/clean-css/compare/v3.3.1...3.3)
+==================
+
+* Fixed issue [#601](https://github.com/jakubpawlowicz/clean-css/issues/601) - percentage minifying inside `flex`.
+
[3.3.1 / 2015-06-02](https://github.com/jakubpawlowicz/clean-css/compare/v3.3.0...v3.3.1)
==================
.replace(/(\d)\.($|\D)/g, '$1$2');
}
-function unitMinifier(_, value, unitsRegexp) {
+function unitMinifier(name, value, unitsRegexp) {
if (/^(?:\-moz\-calc|\-webkit\-calc|calc)\(/.test(value))
return value;
+ if (name == 'flex' || name == 'flex-basis')
+ return value;
+
return value
.replace(unitsRegexp, '$1' + '0' + '$2')
.replace(unitsRegexp, '$1' + '0' + '$2');
'inside calc': [
'a{font-size:calc(100% + 0px)}',
[['font-size', 'calc(100% + 0px)']]
+ ],
+ 'flex': [
+ 'a{flex: 1 0 0%}',
+ [['flex', '1', '0', '0%']]
+ ],
+ 'flex–basis': [
+ 'a{flex-basis:0%}',
+ [['flex-basis', '0%']]
]
})
)