From 8c0fb9003d874fcbee0b1a6f6ee30dfb58c668bc Mon Sep 17 00:00:00 2001 From: Jamie <5964236+jamsinclair@users.noreply.github.com> Date: Wed, 6 Dec 2023 22:20:28 +0900 Subject: feat(ext/web): add ImageData Web API (#21183) Fixes #19288 Adds the `ImageData` Web API. This would be beneficial to projects using `ImageData` as a convenient transport layer for pixel data. This is common in Web Assembly projects that manipulate images. Having this global available in Deno would improve compatibility of existing JS libraries. **References** - [MDN ImageData Web API](https://developer.mozilla.org/en-US/docs/Web/API/ImageData) - [whatwg HTML Standard Canvas Spec](https://html.spec.whatwg.org/multipage/canvas.html#pixel-manipulation) --- tools/wpt/expectation.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/wpt') diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json index 3b4b3b9d4..2c9aa8ceb 100644 --- a/tools/wpt/expectation.json +++ b/tools/wpt/expectation.json @@ -7011,6 +7011,11 @@ } }, "embedded-content": { + "the-canvas-element": { + "imagedata.html": [ + "ImageData(buffer, w, opt h), Uint8ClampedArray argument type check" + ] + }, "the-iframe-element": { "cross-origin-to-whom-part-2.window.html": false, "cross-origin-to-whom.window.html": false, @@ -8389,7 +8394,6 @@ "interface-objects": { "001.worker.html": [ "The SharedWorker interface object should be exposed.", - "The ImageData interface object should be exposed.", "The ImageBitmap interface object should be exposed.", "The CanvasGradient interface object should be exposed.", "The CanvasPattern interface object should be exposed.", -- cgit v1.2.3