cuth / postcss-pxtorem

Convert pixel units to rem (root em) units using PostCSS
MIT License
2.02k stars 174 forks source link

Adjust handling of zero values to preserve CSS clamp() compatibility #106

Closed michaeldietiker closed 4 months ago

michaeldietiker commented 4 months ago

This change addresses an issue where CSS clamp() functions were breaking because they require a unit to clamp properly. Removing this conditional ensures that the unit is included even when the value is zero, allowing clamp() functions to work correctly with zero values.

michaeldietiker commented 4 months ago

@cuth could you merge this pull request and release a new version?

michaeldietiker commented 3 months ago

@cuth thank you for merging. Could you please also publish a new version on npm?