Open Bug 1948583 Opened 28 days ago Updated 19 days ago

ImageData does not support color space

Categories

(Core :: Graphics, defect)

defect

Tracking

()

People

(Reporter: sotaro, Unassigned)

References

(Blocks 2 open bugs)

Details

During running test in Bug 1940072, the following code caused exception.

const srcImgData = new ImageData(2, 2, { colorSpace: srcColorSpace });

convertRGBA8UnormBytesToColorSpace - readbackFromWebGPUCanvas.spec.ts:83:21
TypeError: ImageData constructor: Argument 1 is not an object.

ImageData.webidl does not have color space.

https://html.spec.whatwg.org/multipage/canvas.html#imagedata

Blocks: 1940072

This was added in https://github.com/whatwg/html/pull/6562 (which points to bug 1703654 as our implementation bug, but that was only used to implement support in the WebGL canvas).

Severity: -- → S3

This is more gfx issue, I think. Sure, there is some minor webidl bindings changes needed too.

Severity: S3 → --
Component: DOM: Core & HTML → Graphics
Blocks: HDR
Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.