Allow "auto" for the width/height of the image element
SVG2 makes it possible for the <image>
element to have its width/height specified as auto
, e.g. <image href="foo.jpg" width="auto" height="auto"/>
- in fact those are the initial values now, instead of 0.
In that case, the image element is supposed to use the "intrinsic size" of the referenced image file.
I think we need a new type of property for width/height, that supports auto
as well as lengths. It would get resolved to 0 for most elements, and to the image's natural size for the <image>
element.