 30, 40);
  var imagebitmap = canvas.transferToImageBitmap();
  assertWidthAndHeight(imagebitmap, "imagebitmap", 30, 40);
}

function testResizeOnTransferredOffscreenCanvas() {
  var placeholder = document.createElement("canvas");
  var offscreencanvas = transferredOffscreenCanvasCreation(placeholder, 10, 20);
  var ctx = offscreencanvas.getContext("webgl");

  // Verify that setting the size of an OffscreenCanvas that has a placeholder works.
  offscreencanvas.width = 30;
  offscreencanvas.height = 40;
  a