I proposed in #1880 that the layout size of an <img> should set the viewport for SVG in terms of media queries when drawing to a <canvas>, as it lets you control the viewport size independent to drawn pixels.
Since createImageBitmap lets you draw a blob, you lose control over the viewport. Feels like we should add options to specify the viewport, which would fall back to the pattern described in #1880.
createImageBitmap(blob, {
viewportWidth,
viewportHeight
});
I proposed in #1880 that the layout size of an
<img>should set the viewport for SVG in terms of media queries when drawing to a<canvas>, as it lets you control the viewport size independent to drawn pixels.Since
createImageBitmaplets you draw a blob, you lose control over the viewport. Feels like we should add options to specify the viewport, which would fall back to the pattern described in #1880.