<canvas
  type="2d"
  canvas-id="canvas"
  style="width: 300px; height:300px"
></canvas>