[whatwg] Size of SVG->Img->Canvas

On 11/18/11 11:56 AM, Gavin Kistner wrote:
> In each of the eight combinations of (img heightwidth/CSS heightwidth/SVG heightwidth) being present or not, what are the intrinsic dimensions of the "image" drawn to the canvas?

The spec defines this, no?  It's cited in 

> (Should it always use the raster bitmap created for the img?

What makes you think such a thing even exists?  Gecko doesn't create a 
bitmap for an <img> pointing to an SVG file until actually painting the 
image (just like for an inline <svg> element).

> Should it re-rasterize the sourced SVG at the specified height/width?)

The SVG should be re-rasterized at the width and height of the rectangle 
on the canvas it's being drawn into, I should think.


Received on Thursday, 17 November 2011 15:25:33 UTC