flexbugs
flexbugs copied to clipboard
`flex: 1 1 0%` is different from flex: `1 1 0px`
Regarding bug 4, we should not advise people to replace flex shorthand declarations that contain a unitless third argument with percentages instead of pixels, for flex: 1 1 0%
is different from flex: 1 1 0px
.
More on the topic: https://bugs.chromium.org/p/chromium/issues/detail?id=495306
Generally it is advisable to never use units with 0
in the first place.
We agree on this. But sometimes the code is already there and you just can't replace every occurrence.