Re: [csswg-drafts] [css-color-4] Use exact values for some matrices in conversions.js (#7320)

Diff in decimal format, for easier verification (I have verified it):

`lin_sRGB_to_XYZ`
```diff
-  [ 0.41239079926595934, 0.357584339383878,   0.1804807884018343  ],
+  [ 0.4123907992659595,  0.35758433938387796, 0.1804807884018343  ],
-  [ 0.21263900587151027, 0.715168678767756,   0.07219231536073371 ],
+  [ 0.21263900587151036, 0.7151686787677559,  0.07219231536073371 ],
-  [ 0.01933081871559182, 0.11919477979462598, 0.9505321522496607  ]
+  [ 0.01933081871559185, 0.11919477979462599, 0.9505321522496606  ]
```

`XYZ_to_lin_sRGB`
```diff
-  [  3.2409699419045226,  -1.537383177570094,   -0.4986107602930034  ],
+  [  3.2409699419045213,  -1.5373831775700935,  -0.4986107602930033  ],
-  [ -0.9692436362808796,   1.8759675015077202,   0.04155505740717559 ],
+  [ -0.9692436362808798,   1.8759675015077206,   0.04155505740717561 ],
-  [  0.05563007969699366, -0.20397695888897652,  1.0569715142428786  ]
+  [  0.05563007969699361, -0.20397695888897657,  1.0569715142428786  ]
```

`lin_P3_to_XYZ`
```diff
-  [ 0.4865709486482162,  0.26566769316909306,  0.1982172852343625 ],
+  [ 0.48657094864821626, 0.26566769316909294,  0.1982172852343625 ],
-  [ 0.2289745640697488,  0.6917385218365064,   0.079286914093745  ],
+  [ 0.22897456406974884, 0.6917385218365062,   0.079286914093745  ],
-  [ 0.0000000000000000,  0.04511338185890264,  1.043944368900976  ]
+  [ 0,                   0.045113381858902575, 1.0439443689009757 ]
```

`XYZ_to_lin_P3`
```diff
-  [  2.493496911941425,    -0.9313836179191239, -0.40271078445071684  ],
+  [  2.4934969119414245,   -0.9313836179191236, -0.40271078445071684  ],
-  [ -0.8294889695615747,    1.7626640603183463,  0.023624685841943577 ],
+  [ -0.829488969561575,     1.7626640603183468,  0.02362468584194359  ],
-  [  0.03584583024378447,  -0.07617238926804182, 0.9568845240076872   ]
+  [  0.035845830243784335, -0.07617238926804171, 0.9568845240076873   ]
```

`lin_a98rgb_to_XYZ`
```diff
-  [ 0.5766690429101305,   0.1855582379065463,   0.1882286462349947  ],
+  [ 0.5766690429101308,   0.18555823790654627,  0.18822864623499472 ],
-  [ 0.29734497525053605,  0.6273635662554661,   0.07529145849399788 ],
+  [ 0.29734497525053616,  0.627363566255466,    0.07529145849399789 ],
-  [ 0.02703136138641234,  0.07068885253582723,  0.9913375368376388  ]
+  [ 0.027031361386412378, 0.07068885253582714,  0.9913375368376389  ]
```

`XYZ_to_lin_a98rgb`
```diff
-  [  2.0415879038107465,    -0.5650069742788596,   -0.34473135077832956 ],
+  [  2.041587903810746,     -0.5650069742788596,   -0.3447313507783295  ],
-  [ -0.9692436362808795,     1.8759675015077202,    0.04155505740717557 ],
+  [ -0.9692436362808798,     1.8759675015077206,    0.04155505740717561 ],
-  [  0.013444280632031142,  -0.11836239223101838,   1.0151749943912054  ]
+  [  0.013444280632031024,  -0.11836239223101824,   1.0151749943912054  ]
```

`lin_2020_to_XYZ`
```diff
-  [ 0.6369580483012914,  0.14461690358620832,  0.1688809751641721   ],
+  [ 0.6369580483012913,  0.14461690358620838,  0.16888097516417205  ],
-  [ 0.2627002120112671,  0.6779980715188708,   0.05930171646986196  ],
+  [ 0.26270021201126703, 0.677998071518871,    0.059301716469861945 ],
-  [ 0.000000000000000,   0.028072693049087428, 1.060985057710791    ]
+  [ 0,                   0.028072693049087508, 1.0609850577107909  ]
```

`XYZ_to_lin_2020`
```diff
-  [ 1.7166511879712674,   -0.35567078377639233, -0.25336628137365974 ],
+  [ 1.7166511879712676,   -0.3556707837763924,  -0.2533662813736598  ],
-  [ -0.6666843518324892,   1.6164812366349395,   0.01576854581391113 ],
+  [ -0.666684351832489,    1.616481236634939,    0.01576854581391113 ],
-  [ 0.017639857445310783, -0.042770613257808524, 0.9421031212354738  ]
+  [ 0.017639857445310915, -0.042770613257808655, 0.942103121235474   ]
```

-- 
GitHub Notification of comment by kainino0x
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/7320#issuecomment-1139225733 using your GitHub account


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

Received on Friday, 27 May 2022 02:40:15 UTC