-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Consistently handle none/NaN across library #476
Consistently handle none/NaN across library #476
Conversation
✅ Deploy Preview for colorjs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for the APCA contrast method which doesn't handle colors with none
.
> new Color("red").contrast(new Color("rgb(none 100% 100%)"), "apca");
> NaN
Yeah, I was fixing existing handling, I didn't try to identify new broken cases 🙂 |
I'll address it. |
Done > new Color("red").contrast(new Color("rgb(none 100% 100%)"), "apca");
-53.91362069001541 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic work, thank you so much!!
This fixes bad conversion due to "none" usage and other "none" related issues.
Ref #475