You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
There is certainly value in testing this flavor of OffscreenCanvas.
By target do you mean adding a new directory under wpt/html/canvas? If yes, I would think that is a bit overkill, especially as most tests are generated from the yaml files and for most scenarios it is not necessary to run both the existing version of OffscreenCanvas tests and Transferred Canvas tests.
Other approaches that come to mind would be adding these tests to the manual directory inside wpt/html/canvas/offscreen, that has the tests that are not generated from the yaml files.
A more thorough although more time consuming option would be to modify the Jinja templates and the generator so that it's possible to configure this from the yaml via some parameter. Having that, applying variants would enable to test with both OffscreenCanvas versions when needed.
I was going to go all in and add a an additional directory under wpt/html/canvas with the ability to tag only tests that need this flavor of testing because the tests I'm considering would need to run in all flavors.
Although on further consideration the output should differ in each scenario, so maybe bespoke tests in manual would be better.
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.
The text was updated successfully, but these errors were encountered: