width property returns and sets the width of an
var pxl = offscreen.width; offscreen.width = pxl;
Creating a new offscreen canvas and returning or setting the width of the offscreen canvas:
var offscreen = new OffscreenCanvas(256, 256); offscreen.width; // 256 offscreen.width = 512;
|HTML Living Standard
The definition of 'OffscreenCanvas.width' in that specification.
BCD tables only load in the browser
OffscreenCanvas, the interface this property belongs to.