postcss-calc icon indicating copy to clipboard operation
postcss-calc copied to clipboard

fix: remove comments before parsing calc value

Open ludofischer opened this issue 3 years ago • 1 comments

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 avatar Feb 05 '22 19:02 ludofischer

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

ludofischer avatar Feb 05 '22 19:02 ludofischer