-
Notifications
You must be signed in to change notification settings - Fork 82
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
Support grad, rad, and turn angle units for the hue value of hsl() #311
Comments
@LeaVerou FYI here; This issue came from us trying to adopt Color.js into axe-core. Axe currently has its own color conversion code, but with new color spaces & syntax available in CSS 4 we needed something a little more robust. Time permitting, we'll try to contribute to help address issues. This isn't going to increase the Color.js weekly installs number on NPM. Axe-core embeds its dependencies, but it'll be there. I'm curious if there are any considerations on using Color.js in axe-core? You can see the PR for adding Color.js into axe-core here if you're curious: dequelabs/axe-core#4020 |
We're happy to merge a PR to support other angle units. |
I'd like to be able to pass any of the 4 hue angle units (
deg
,grad
,rad
, andturn
) to thenew Color(str)
constructor, but at the moment onlydeg
works.The text was updated successfully, but these errors were encountered: