Skip to content

Commit 63f635f

Browse files
committed
[css-color-4] bugfix ΔE2k see color-js/color.js#84
1 parent 0bb714a commit 63f635f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-color-4/deltaE2000.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function deltaE2000 (reference, sample) {
6767
let habs = Math.abs(hdiff);
6868
let Δh;
6969

70-
if (Cdash1 == 0 && Cdash2 == 0) {
70+
if (Cdash1 * Cdash2 === 0) {
7171
Δh = 0;
7272
}
7373
else if (habs <= 180) {

0 commit comments

Comments
 (0)