2.1.4 [W3C-CANVAS2D] Section 8 Fill and stroke styles
V0013: The fillStyle attribute allows invalid values
The specification states:
8 Fill and stroke styles ... The fillStyle attribute represents the color or style to use inside shapes, and the strokeStyle attribute represents the color or style to use for the lines around the shapes. Both attributes can be either strings, CanvasGradients, or CanvasPatterns. On setting, strings must be parsed as CSS <color> values and the color assigned, and CanvasGradient and CanvasPattern objects must be assigned themselves [CSSCOLOR]. ...
All document modes (All versions)
fillStyle attribute allows
invalid values and parses them and maps them to valid values.