NEW 235270
Non-HTMLCanvasElement based canvas's don't support all the syntax that CSS supports for parsing colors
https://bugs.webkit.org/show_bug.cgi?id=235270
Summary Non-HTMLCanvasElement based canvas's don't support all the syntax that CSS su...
Sam Weinig
Reported 2022-01-15 12:25:52 PST
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.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-01-22 12:26:18 PST
Note You need to log in before you can comment on or make changes to this bug.