yui / yuicompressor

YUI Compressor
http://yui.github.com/yuicompressor/
Other
3.01k stars 662 forks source link

Flex-Basis value should keep its length unit (px, %, …) #306

Open nilssolanki opened 6 years ago

nilssolanki commented 6 years ago

Dear Yui-Team

There is a know flexbox-bug in IE 10 & 11, where flex-basis needs to have a unit if its value is 0.

E.g. flex-basis: 0; does not work in IE, whereas flex-basis: 0px or flex-basis: 0%; works.

Unfortunately, the Yui-Compressor seems to strip out these values. If I input the following:

flex-basis: 0%;

My output is going to be:

flex-basis: 0;

The same thing happens with the flex shorthand, e.g. flex: 1 0 0%;.

Which makes it impossible to address the bug mention above. Could you please fix this? Thank you very much for your help!

kakarlus commented 4 years ago

any news/workaround for this one?