diff --git a/src/spaces/hwb.js b/src/spaces/hwb.js index 4d94072cd..050690c78 100644 --- a/src/spaces/hwb.js +++ b/src/spaces/hwb.js @@ -52,7 +52,7 @@ export default new ColorSpace({ formats: { "hwb": { - coords: [" | ", "", ""], + coords: [" | ", " | ", " | "], }, }, }); diff --git a/test/parse.js b/test/parse.js index 4283cfcbb..84cbe5631 100644 --- a/test/parse.js +++ b/test/parse.js @@ -511,6 +511,10 @@ const tests = { args: "hwb(none 20% 30%)", expect: '{"spaceId":"hwb","coords":[null,20,30],"alpha":1}', }, + { + args: "hwb(180 20 30)", + expect: '{"spaceId":"hwb","coords":[180,20,30],"alpha":1}', + }, ], }, ],