Skip to content

11.2.0

Choose a tag to compare

@ludofischer ludofischer released this 17 Sep 08:34
· 12 commits to master since this release

What's Changed

Features

  • postcss-calc now offers two modes. By default, it tries to follow the spec
    as closely as possible by not unwrapping calc() value. This allows the browser to transform negative and floating point values, especially in cases where only integers are allowed in the CSS property.
    If you want to remove the calc() function when it wraps a single value, use unwrapSingleValue: true. This allows you to get rid of calc() and replace it with a single number wherever that is possible.

Bug fixes

  • postcss-calc performs rounding in a way that's hopefully closer to the specification
  • fix cases where the sign() function was not computed correctly

Migration

The published unwrapSingleNegativeNumber option remains available as a
deprecated alias for unwrapSingleValue.

Full Changelog: v11.1.2...v11.2.0