Skip to content

Releases: nc-js/css-color-value

v0.2.3

17 May 21:51
8217f99

Choose a tag to compare

v0.2.3 Pre-release
Pre-release

Documentation

  • Fix minor typo in documentation for CssHwb and CssOkLch.
  • Add inline comments in example for CssRgb.
  • Use consistent notation for CSS functions in CssHsl, CssHwl, CssOkLch, and CssRgb.

v0.2.2

16 May 07:42
90dc2b9

Choose a tag to compare

v0.2.2 Pre-release
Pre-release

Documentation

  • Fixes minor formatting consistency issue in matchesFrequency().

v0.2.1

16 May 07:36
eb244be

Choose a tag to compare

v0.2.1 Pre-release
Pre-release

Documentation

  • Use README.md as the root module-level documentation.

v0.2.0

16 May 07:32
c196d79

Choose a tag to compare

v0.2.0 Pre-release
Pre-release

Features

  • Adds CssColor type, which represents a generic color space and the CSS color() function (CSS Colors Module Level 4). This polyfills the official CSSColor type.
  • Exports the matchesType() function (formerly internal), for dynamically checking the type of a CSSNumericValue.
  • All type-matching functions (under /matches) now also accept a CSSNumericType (instead of just CSSNumericValue).
  • Adds CSSMatchableType type alias, a union of CSSNumericType and CSSNumericValue.

Fixes

  • Fixes a typo in a function name, where matchesPercent() is renamed to matchesPercentage() (matching the CSS type, <percentage>).

Documentation

  • CssRgb, CssHsl, CssHwb: Adds usage examples.
  • CssLab, CssLch: Fixes text-rendering in the summary.
  • CssColor: Adds MDN link to the CSS color() function for CssColor.
  • CssColor: Clarifies valid color space types for CssColor.
  • Adds module-level documentation to every module.
  • Cleans up documentation for type-matching functions.
  • Consistently links to drafts.css-houdini.org instead of w3.org for W3-related links.
  • (Internal) Clarifies the conditions that a reifying/rectifying function (under ./reify) throws a SyntaxError.

v0.1.2

16 May 01:35
302d72a

Choose a tag to compare

v0.1.2 Pre-release
Pre-release
  • Fix: correctly export all symbols

v0.1.1

16 May 01:27
e5d179f

Choose a tag to compare

v0.1.1 Pre-release
Pre-release
  • Use correct README.md file for package

v0.1.0

16 May 01:24
1fba83c

Choose a tag to compare

v0.1.0 Pre-release
Pre-release
  • Initial release of library