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 Standard (HTML)|
BCD tables only load in the browser
OffscreenCanvas, the interface this property belongs to.