Skip to content

Offscreen canvas tests only test one flavor #49987

Open
@schenney-chromium

Description

@schenney-chromium

The OffscreenCanvas tests create an OffscreenCanvas using the JS constructor then operate on it. This is just one way to create an OffscreenCanvas, the other is to transfer control from an HTML canvas.

Some aspects of the OffscreenCanvasRenderingContext2d behavior depend on whether or not the Offscreen is a placeholder for a DOM canvas. I'm talking text direction and the proposed lang text property. Currently there is no way to test the behavior in this situation (specifically the behavior with the "inherit" value for the text direction and lang property).

I propose adding an additional canvas test target, "TransferredOffscreen" or something similar so that we can test this behavior.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions