Skip to content

Latest commit

 

History

History
325 lines (200 loc) · 20 KB

File metadata and controls

325 lines (200 loc) · 20 KB

Changes to CSS Color Parser

Unreleased (minor)

  • Add support for analogous set in color interpolations

4.0.2

February 21, 2026

4.0.1

January 25, 2026

4.0.0

January 14, 2026

3.1.0

August 22, 2025

  • Add support for display-p3-linear in color(display-p3-linear 0.3081 0.014 0.0567)
  • Add support for display-p3-linear in color-mix(in display-p3-linear, red, blue)
  • Add support for omitting the color space in color-mix(red, blue)
  • Add support for alpha(from red / 0.5)
  • Updated @csstools/color-helpers to 5.1.0 (minor)

3.0.10

May 27, 2025

3.0.9

April 19, 2025

3.0.8

February 23, 2025

3.0.7

December 27, 2024

3.0.6

November 11, 2024

3.0.5

November 1, 2024

3.0.4

October 23, 2024

3.0.3

October 10, 2024

3.0.2

August 18, 2024

3.0.1

August 14, 2024

3.0.0

August 3, 2024

2.0.5

July 13, 2024

  • fix serializeP3 when gamutMapping is false

2.0.4

July 6, 2024

2.0.3

June 29, 2024

2.0.2

May 4, 2024

2.0.1

May 4, 2024

2.0.0

April 21, 2024

  • Switch to the ray-tracing gamut mapping algorithm. This is a minimally invasive change when generating fallback colors for CSS but breaking if you relied on the exact output of the previous gamut mapping algorithm.
  • Fix none keyword conversion in relative color syntax origin values. (again)
  • Updated @csstools/color-helpers to 4.2.0 (minor)

1.6.3

March 31, 2024

  • Fix missing rectangular color spaces for interpolation in color-mix().
  • Fix none keyword conversion in relative color syntax origin values.
  • Updated @csstools/color-helpers to 4.1.0 (minor)

1.6.2

March 16, 2024

  • Fix powerless components for lch and oklch with none chroma.

1.6.1

March 16, 2024

  • Fix powerless components for hsl with none saturation.

1.6.0

March 13, 2024

1.5.2

February 19, 2024

1.5.1

December 31, 2023

1.5.0

December 15, 2023

1.4.0

October 9, 2023

  • Add utility to determine if a color is in the Display P3 gamut.

1.3.3

October 2, 2023

  • Fix interpolation of hue when either or both components are none and longer is the interpolation method.

1.3.2

September 24, 2023

1.3.1

September 2, 2023

1.3.0

August 28, 2023

  • Add a serializeOKLCH function.
  • Always convert to the target color space, even when the input color is already in that specific color space.
  • Correctly apply the hue interpolation method when either angle is missing.
  • Updated @csstools/color-helpers to 3.0.1 (patch)

1.2.3

July 24, 2023

  • Allow number values in hwb.
  • Fix value calculation for s, l (hsl) and w, b (hwb) components in relative color syntax.
  • a and b components in lab and oklab are analogous.
  • Powerless components are limited to achromatic colors and only affect hue unless otherwise specified.
  • Fix value normalization.
  • Updated @csstools/css-tokenizer to 2.2.0 (minor)
  • Updated @csstools/css-parser-algorithms to 2.3.1 (patch)
  • Updated @csstools/css-calc to 1.1.3 (patch)

1.2.2

July 3, 2023

1.2.1

June 14, 2023

  • Fix value calculation for hue components in relative color syntax.

1.2.0

May 19, 2023

  • Add support for relative color syntax.
  • Updated @csstools/color-helpers to 2.1.0 (minor)

1.1.2

April 10, 2023

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

1.1.1

April 10, 2023

  • Improve the detection of math function in color notations.

1.1.0

March 28, 2023

  • Add a flag to serializeP3 and serializeRGB to skip gamut mapping.

1.0.0

March 25, 2023

  • Initial version