Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for space-separated HSL #55

Merged
merged 3 commits into from
Jul 17, 2021
Merged

Add support for space-separated HSL #55

merged 3 commits into from
Jul 17, 2021

Conversation

htunnicliff
Copy link
Contributor

This PR adds support for color strings that use space-separated HSL notation described in the CSS Colors Level 4 specification for the hsl() function.

This well-supported update to the hsl() function supports values like these:

hsl(200 50% 25%)
hsl(200 50% 25% / 0.25)

Changes

  • Add tests for space-separated HSL syntax 3b4287c
  • Update the regular expression for HSL color strings 9c7c9e8
  • Add examples to the README that use space-separated HSL syntax 672b47a

@Qix-
Copy link
Owner

Qix- commented Jul 17, 2021

Man, bizarre. I wonder what the use-case was for them adding this.

Anyway, thanks for the very complete PR :)

@Qix- Qix- merged commit 2b6f59c into Qix-:master Jul 17, 2021
@Qix-
Copy link
Owner

Qix- commented Jul 17, 2021

Published as 1.6.0. Thanks again!

@htunnicliff
Copy link
Contributor Author

Thanks @Qix-! That was one of the fastest open-source PR merges I've ever seen 🚀

@htunnicliff htunnicliff deleted the hsl-space-notation branch July 17, 2021 14:31
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