Non-HTMLCanvasElement based canvas's (OffscreenCanvas, CustomPaintCanvas) don't support all the syntax that CSS supports for parsing colors because they use a variant of CSSParser::parseColor that doesn't have a CSSParserContext initialized with the appropriate Settings object. To make this work, we will need to find a way to initialize a CSSParserContext for these callers, perhaps using the ScriptExecutionContext for the worker cases.
<rdar://problem/87928857>