[svgwg] x/y/width/height attributes on HTML elements

zcorpan has just created a new issue for https://github.com/w3c/svgwg:

== x/y/width/height attributes on HTML elements ==
[[
‘canvas’
‘foreignObject’
‘iframe’
‘image’
‘video’
Return the tightest rectangle in coordinate space space that contains 
the rectangle defined by the ‘x’, ‘y’, ‘width’ and ‘height’ attributes
 of the element.
]]
https://www.w3.org/TR/2015/WD-SVG2-20150915/coords.html#ContainerElementBoudingBoxComputation

The HTML elements here do not have 'x' and 'y' attributes defined in 
HTML. Do you propose making them conforming for HTML?

How is the value taken from the 'width' and 'height' attributes for 
HTML elements? It could use the computed value from CSS (or some 
such), or use 
https://html.spec.whatwg.org/multipage/infrastructure.html#rules-for-parsing-dimension-values
 (can be error, percentage, or a length) if you want just the 
attribute and ignore any CSS...

Related
https://github.com/w3c/svgwg/issues/240
https://github.com/whatwg/html/issues/919

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

Received on Thursday, 25 August 2016 14:10:40 UTC