ben-eb / perfectionist

Beautify CSS files.
MIT License
229 stars 14 forks source link

`trimTrailingZeros` entirely strips `0.0` instead of leaving a single `0` #85

Open sylbru opened 6 years ago

sylbru commented 6 years ago

When the option trimTrailingZeros is enabled, a CSS rule like:

margin: 0.0;

gets "fixed" as:

margin: ;

which I believe is invalid CSS. I suppose the expected result would be more like:

margin: 0;