Sorry for the duplication. I just realized that I didn't finish my subject in my previous email.
I am looking at some tests under w3c/web-platform-tests/2dcontext/fill-and-stroke-styles, and I noticed that the behavior is in-consistent between Chrome and Firefox. In particular, these tests have a line looks like this:
ctx.fillStyle = 'hsl(120, 100.0% 50.0%)';
In the above line, ctx is a 2d context for a <canvas> element.
I am not familiar with the CSS <color> values, and I would appreciate any help with the following two question:
1. Is 'hsl(120, 100.0%, 50.0%)' a valid string that can be parsed as CSS <color> values?
2. Is ' red' a valid string for CSS <color> values? Note that there is a space before red.
Thank you.