11.2.0
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 thecalc()function when it wraps a single value, useunwrapSingleValue: true. This allows you to get rid ofcalc()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