Bug 235270 - Non-HTMLCanvasElement based canvas's don't support all the syntax that CSS supports for parsing colors
Summary: Non-HTMLCanvasElement based canvas's don't support all the syntax that CSS su...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-15 12:25 PST by Sam Weinig
Modified: 2022-01-22 12:26 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 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.
Comment 1 Radar WebKit Bug Importer 2022-01-22 12:26:18 PST
<rdar://problem/87928857>