postcss / postcss-calc

PostCSS plugin to reduce calc()
MIT License
212 stars 34 forks source link

fix: remove comments before parsing calc value #171

Open ludofischer opened 2 years ago

ludofischer commented 2 years ago

Since 8.4.6, PostCSS stopped removing comments in declarations, because it sometimes produced the wrong CSS. postcss-calc can remove the comments safely because it only modifies the contents of function nodes.

ludofischer commented 2 years ago

For context, this is the discussion for the PostCSS change https://github.com/postcss/postcss/issues/1703