Skip to content

Latest commit

 

History

History
196 lines (113 loc) · 10.3 KB

File metadata and controls

196 lines (113 loc) · 10.3 KB

Changes to CSS Calc

Unreleased (minor)

  • Add onParseError option to calc().

3.0.1

February 10, 2026

  • Fix source positions for generated functions and comma's. These now adopt the source position of surrounding nodes.

3.0.0

January 14, 2026

2.1.4

May 27, 2025

2.1.3

April 19, 2025

  • Update random() to better handle floating point errors.
  • Update random() to match the latest specification

2.1.2

February 23, 2025

  • Update random() to correctly handle extremely large ranges or extremely tiny steps.

2.1.1

December 27, 2024

  • Apply toCanonicalUnits to result containing NaN and Infinity

2.1.0

November 11, 2024

  • Add support for random()

2.0.4

November 1, 2024

2.0.3

October 23, 2024

2.0.2

October 10, 2024

2.0.1

August 18, 2024

  • Add rawPercentages option to indicate that percentage values do not resolve against external values.
  • Skip some calculations for values with percentages as those only have a known positive or negative value in a browser context.
  • Updated @csstools/css-tokenizer to 3.0.1 (patch)
  • Updated @csstools/css-parser-algorithms to 3.0.1 (patch)

2.0.0

August 3, 2024

1.2.4

July 6, 2024

1.2.3

June 29, 2024

1.2.2

May 4, 2024

1.2.1

May 4, 2024

1.2.0

March 13, 2024

1.1.7

February 19, 2024

1.1.6

December 31, 2023

1.1.5

December 15, 2023

1.1.4

September 24, 2023

1.1.3

July 24, 2023

1.1.2

July 3, 2023

1.1.1

April 10, 2023

  • Updated @csstools/css-tokenizer to 2.1.1 (patch)
  • Updated @csstools/css-parser-algorithms to 2.1.1 (patch)

1.1.0

April 10, 2023

  • Expose the list of supported math functions.

1.0.1

March 25, 2023

  • Improve case insensitive string matching.

1.0.0

February 21, 2023

  • Initial version