-
Notifications
You must be signed in to change notification settings - Fork 779
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
fix(color-contrast): support CSS 4 color spaces #4020
Conversation
assert.equal(c.blue, 200); | ||
assert.equal(c.alpha, 1); | ||
}); | ||
it.skip('allows exponent numbers', () => { |
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.
Colorjs doesn't handle this, but we decided that's ok
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.
We should open an issue for this with colorjs.
it('allows oklab', () => { | ||
const c = new Color(); | ||
c.parseColorFnString('oklab(0.697 -0.107 0.023)'); | ||
assert.equal(c.red, 77); |
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.
Weird, chrome devtools gives me 76 for this. 🤷
Caused #4127 |
Adds support for
hwb()
,lab()
,lch()
,oklab()
, andoklch()
color spacesCloses: #4007