minify icon indicating copy to clipboard operation
minify copied to clipboard

Don't transform flex-basis: 0 into flex-basis: 0%

Open Golmote opened this issue 3 years ago • 0 comments

Hello,

When given this code:

.foo {
    flex-basis: 0;
}

or this code:

.foo {
    flex-basis: 0px;
}

the minifier transform the value into 0%:

.foo{flex-basis:0%}

This is an issue because using percentages for flex-basis does not produce the same result.

This issue also happens when using the flex shorthand:

.foo {
    flex: 1 0 0;
}
.bar {
    flex: 1 0 0px;
}

gives

.foo{flex:1 0 0%}.bar{flex:1 0 0%}

Golmote avatar Mar 30 '21 09:03 Golmote