Skip to content

Conversation

kajkal
Copy link
Contributor

@kajkal kajkal commented Apr 19, 2023

The CSS color parsing library has changed (#94) and the previously supported hsl color formats, which are not compliant with the CSS Color specification, are no longer supported.

This change helps automate the process of migrating from hsl(110, 0.7, 0.055) format to hsl(110, 70%, 5.5%) format.

Source of the non-standard format in the former CSS parsing library csscolorparser:
https://github.com/deanm/css-color-parser-js/blob/0d3798690d7e52539f43155a07d3d0fd484e6b8b/csscolorparser.js#L183-L184

Launch Checklist

  • Confirm your changes do not include backports from Mapbox projects (unless with compliant license) - if you are not sure about this, please ask!
  • Briefly describe the changes in this PR.
  • Link to related issues.
  • Include before/after visuals or gifs if this PR includes visual changes.
  • Write tests for all new functionality.
  • Document any changes to public APIs.
  • Post benchmark scores.
  • Add an entry to CHANGELOG.md under the ## main section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants