Back to Sass

Calc Constants.Changes

accepted/calc-constants.changes.md

latest674 B
Original Source

Draft 1.1

  • Throw an error when serializing a degenerate number with complex units in a calculation.

  • Clarify that we're checking for degenerate values in "Converting a Number to a Calculation".

  • Use UnquotedStrings to represent unknown calculation constants rather than CalculationInterpolations/CalculationRaws.

  • Don't parenthesize the right-hand side of "+" or "-" CalculationOperations when the right-hand side is a degenerate number with one or more units. Degenerate numbers are serialized to multiplication and division expressions, which always have higher precedence than addition and subtraction.

Draft 1

  • Initial draft.