Implement HTMLCanvasElement.transferControlToOffscreen (#34959)

This follows the spec by introducing a new "Placeholder" canvas context
mode. The underlying offscreen canvas is kept accessible from the DOM
element to allow for the drawImage() implementation to work with canvases
that have transfered their control.

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-01-12 20:09:02 -08:00 committed by GitHub
parent 90c5685d61
commit c936dd6c4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 139 additions and 42 deletions

View file

@ -7915,12 +7915,6 @@
[HTMLSlotElement interface: calling assign((Element or Text)...) on document.createElement("slot") with too few arguments must throw TypeError]
expected: FAIL
[HTMLCanvasElement interface: operation transferControlToOffscreen()]
expected: FAIL
[HTMLCanvasElement interface: document.createElement("canvas") must inherit property "transferControlToOffscreen()" with the proper type]
expected: FAIL
[HTMLMarqueeElement interface: existence and properties of interface object]
expected: FAIL