Skip to content

Commit f041ba2

Browse files
committed
[css-color-4] use consistent, correct values
for D50 reference white. Closes #2492
1 parent 14657d4 commit f041ba2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

css-color-4/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3121,7 +3121,7 @@ function XYZ_to_Lab(XYZ) {
31213121
// from CIE standard, which now defines these as a rational fraction
31223122
var ε = 216/24389; // 6^3/29^3
31233123
var κ = 24389/27; // 29^3/3^3
3124-
var white = [0.9642, 1.0000, 0.8249]; // D50 reference white
3124+
var white = [[0.96422, 1.00000, 0.82521]; // D50 reference white
31253125

31263126
// compute xyz, which is XYZ scaled relative to reference white
31273127
var xyz = XYZ.map((value, i) => value / white[i]);
@@ -3140,7 +3140,7 @@ function Lab_to_XYZ(Lab) {
31403140
// Convert Lab to D50-adapted XYZ
31413141
var κ = 24389/27; // 29^3/3^3
31423142
var ε = 216/24389; // 6^3/29^3
3143-
var white = [0.9642, 1.0000, 0.8249]; // D50 reference white
3143+
var white = [[0.96422, 1.00000, 0.82521]; // D50 reference white
31443144
var f = [];
31453145

31463146
// compute f, starting with the luminance-related term

0 commit comments

Comments
 (0)