You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[[
‘canvas’
‘foreignObject’
‘iframe’
‘image’
‘video’
Let box be the tightest rectangle in coordinate space space that contains the positioning rectangle defined by the ‘x’, ‘y’, ‘width’ and ‘height’ geometric properties of the element.
...
]] https://svgwg.org/svg2-draft/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?
I will need to change it to indicate that most of the HTML width/height attributes allow percentages. Canvas is the exception, because the attributes set the actual pixel size of the canvas.
Ah, that explains my confusion. I think I'll skirt the issue and not mention them at all; it's only an informative note, with a link to the HTML spec for the details.
[[
‘canvas’
‘foreignObject’
‘iframe’
‘image’
‘video’
Let box be the tightest rectangle in coordinate space space that contains the positioning rectangle defined by the ‘x’, ‘y’, ‘width’ and ‘height’ geometric properties of the element.
...
]]
https://svgwg.org/svg2-draft/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
#240
whatwg/html#919
The text was updated successfully, but these errors were encountered: