Support for CanvasRenderingContext2D in createImageBitmap() has been deprecated

Published: | Categories: Canvas & WebGL, DOM


The createImageBitmap method accepts various types of image sources including an <img>, <video> and Blob. Firefox accepts a CanvasRenderingContext2D as well, but it’s not in the spec nor supported by any other browser. This non-standard behaviour is now considered deprecated and will be removed in the near future. Use a <canvas> directly instead.