flexbugs icon indicating copy to clipboard operation
flexbugs copied to clipboard

`flex: 1 1 0%` is different from flex: `1 1 0px`

Open rpellerin opened this issue 6 years ago • 2 comments

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

rpellerin avatar Jan 24 '19 13:01 rpellerin

Generally it is advisable to never use units with 0 in the first place.

garrettw avatar Jan 24 '19 14:01 garrettw

We agree on this. But sometimes the code is already there and you just can't replace every occurrence.

rpellerin avatar Jan 24 '19 14:01 rpellerin