Bug 232908

Summary: OffscreenCanvasRenderingContext2D.fillStyle does not support system colors in Workers
Product: WebKit Reporter: Cameron McCormack (:heycam) <heycam>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: dino, kkinnunen, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 232918    
Bug Blocks: 183720    

Cameron McCormack (:heycam)
Reported 2021-11-09 15:14:05 PST
Assigning a system color to an OffscreenCanvas 2D context's fillStyle or strokeStyle doesn't work. This is causing WPTs html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.system{,.worker}.html to fail.
Attachments
Radar WebKit Bug Importer
Comment 1 2021-11-09 15:17:25 PST
Kimmo Kinnunen
Comment 2 2026-03-13 02:42:23 PDT
LayoutTests/imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.fillStyle.parse.system.worker.html is the only one failing now. Fails due to RenderTheme not being thread-safe, static OptionSet<CSS::ColorType> allowedColorTypes(ScriptExecutionContext* scriptExecutionContext) turning of system color types.
Note You need to log in before you can comment on or make changes to this bug.