Releases: nc-js/css-color-value
Releases · nc-js/css-color-value
v0.2.3
Documentation
- Fix minor typo in documentation for
CssHwbandCssOkLch. - Add inline comments in example for
CssRgb. - Use consistent notation for CSS functions in
CssHsl,CssHwl,CssOkLch, andCssRgb.
v0.2.2
Documentation
- Fixes minor formatting consistency issue in
matchesFrequency().
v0.2.1
Documentation
- Use
README.mdas the root module-level documentation.
v0.2.0
Features
- Adds
CssColortype, which represents a generic color space and the CSScolor()function (CSS Colors Module Level 4). This polyfills the officialCSSColortype. - Exports the
matchesType()function (formerly internal), for dynamically checking the type of aCSSNumericValue. - All type-matching functions (under
/matches) now also accept aCSSNumericType(instead of justCSSNumericValue). - Adds
CSSMatchableTypetype alias, a union ofCSSNumericTypeandCSSNumericValue.
Fixes
- Fixes a typo in a function name, where
matchesPercent()is renamed tomatchesPercentage()(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 CSScolor()function forCssColor.CssColor: Clarifies valid color space types forCssColor.- Adds module-level documentation to every module.
- Cleans up documentation for type-matching functions.
- Consistently links to
drafts.css-houdini.orginstead ofw3.orgfor W3-related links. - (Internal) Clarifies the conditions that a reifying/rectifying function (under
./reify) throws aSyntaxError.
v0.1.2
- Fix: correctly export all symbols
v0.1.1
- Use correct
README.mdfile for package
v0.1.0
- Initial release of library