https://svgwg.org/svg2-draft/embedded.html#ImageElement
Demo: http://jsbin.com/siqufa/
Most browsers scale the SVG image to the dimensions of the <img>/<image>, but use the dimensions of the <img>/<image> as the viewport for media query purposes.
Firefox differs. For <image> it renders the SVG at its intrinsic size then clips to the <image> width and height. It uses the dimensions of the <image> as the viewport for media query purposes. For <img> it scales the SVG image to the dimensions of the <img> as above, but it uses the device-pixel dimensions for media query purposes, meaning different media queries activate as devicePixelRatio changes.
I can't see where these rendering characteristics are defined, apologies if they are.
https://svgwg.org/svg2-draft/embedded.html#ImageElement
Demo: http://jsbin.com/siqufa/
Most browsers scale the SVG image to the dimensions of the
<img>/<image>, but use the dimensions of the<img>/<image>as the viewport for media query purposes.Firefox differs. For
<image>it renders the SVG at its intrinsic size then clips to the<image>width and height. It uses the dimensions of the<image>as the viewport for media query purposes. For<img>it scales the SVG image to the dimensions of the<img>as above, but it uses the device-pixel dimensions for media query purposes, meaning different media queries activate asdevicePixelRatiochanges.I can't see where these rendering characteristics are defined, apologies if they are.