[svgwg] SVG Image size conflicts with size property and CSS style

shanmuga-m has just created a new issue for 
https://github.com/w3c/svgwg:

== SVG Image size conflicts with size property and CSS style ==
Spec links:
https://svgwg.org/svg2-draft/embedded.html#Placement
https://svgwg.org/svg2-draft/geometry.html#Sizing

 As per the links, for svg element , the initial value is set to '0' 
for the attribute (the former
link) while it is 'auto' for the properties.

but for SVG Image(the second link), The value auto for width and 
height on the ‘image’ element is calculated from the referenced 
image's intrinsic dimensions and aspect ratio, according to the CSS 
default sizing algorithm.

In that case, If SVG Image  intrinsic size explicitly not specified 
like below, 
 <image xlink:href="400x400.png" />
Since width and height are presentation attributes, should it render 
with 400X400 based on second link or 0x0 based on first link ?

Thanks!!

Please view or discuss this issue at 
https://github.com/w3c/svgwg/issues/237 using your GitHub account

Received on Friday, 19 August 2016 07:11:09 UTC