Re: [csswg-drafts] [css-color-4] Linear transformation matrices are very slightly inaccurate (#7675)

Thanks for reporting this. I agree the values should be as accurate as possible. When a lot of conversions are being done, small error residuals can really build up.

Recently these matrices were updated [as a result of this pull request](https://github.com/w3c/csswg-drafts/pull/7320) to use rational numbers where possible. You can see these in the [editors draft](https://drafts.csswg.org/css-color-4/#color-conversion-code). We didn't update the ProPhoto ones, because the rational forms exceed the precision of JavaScript math. And that pull request did not update the Bradford CAT matrices. So it would be good to get the most accurate versions of these.

I wonder if you would mind checking your results above against the new rational forms?

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7675#issuecomment-1235735834 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 2 September 2022 17:14:14 UTC