Open mazznoer opened 2 years ago
From https://www.w3.org/TR/css-color-4/#predefined-xyz, these are exactly equivalent:
#7654CD rgb(46.27% 32.94% 80.39%) lab(44.36% 36.05 -58.99)
But the test is fails for lab.
https://github.com/mazznoer/csscolorparser-rs/blob/a213f2b62388db7abf6b1dd132cda4afb77f6993/tests/parser.rs#L47-L64
I was looking into this a bit & just thought I'd add that the lab calculations probably come from https://github.com/TooManyBees/lab
From https://www.w3.org/TR/css-color-4/#predefined-xyz, these are exactly equivalent:
But the test is fails for lab.
https://github.com/mazznoer/csscolorparser-rs/blob/a213f2b62388db7abf6b1dd132cda4afb77f6993/tests/parser.rs#L47-L64