Skip to content

Commit

Permalink
Fix parsing tests to resolve based on reference range
Browse files Browse the repository at this point in the history
  • Loading branch information
LeaVerou committed May 24, 2024
1 parent f20d847 commit 4bf6b73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,15 +349,15 @@ const tests = {
},
{
args: "color(--acescc 0 100% 50%)",
expect: {spaceId: "acescc", coords: [0, 1, 0.5], alpha: 1},
expect: {spaceId: "acescc", coords: [0, 1.4679963120447153, 0.5548547410223577], alpha: 1},
},
{
args: "color(acescg 0 1 .5)",
expect: {spaceId: "acescg", coords: [0, 1, 0.5], alpha: 1},
},
{
args: "color(--acescg 0 100% 50%)",
expect: {spaceId: "acescg", coords: [0, 1, 0.5], alpha: 1},
expect: {spaceId: "acescg", coords: [0, 65504, 32752], alpha: 1},
},
{
args: "color(xyz 0 1 .5)",
Expand Down Expand Up @@ -385,7 +385,7 @@ const tests = {
},
{
args: "color(--xyz-abs-d65 0 100% 50%)",
expect: {spaceId: "xyz-abs-d65", coords: [0, 1, 0.5], alpha: 1},
expect: {spaceId: "xyz-abs-d65", coords: [0, 10000, 5444.15], alpha: 1},
},
{
args: "color(jzazbz 0 25% -50%)",
Expand Down

0 comments on commit 4bf6b73

Please sign in to comment.