[svgwg] Issue: Synchronize SVGImageElement with HTMLImageElement marked as HTML Consistency

dstorey has just labeled an issue for https://github.com/w3c/svgwg as "HTML Consistency":

== Synchronize SVGImageElement with HTMLImageElement ==
The [WHATWG Canvas 2D specs](https://html.spec.whatwg.org/multipage/scripting.html#image-sources-for-2d-rendering-contexts) include this note:

> Although not formally specified as such, SVG image elements are expected to be implemented nearly identical to img elements. That is, SVG image elements share the fundamental concepts and features of img elements.

We should probably make that closer to reality.  Some missing pieces: readonly access to the `naturalWidth` and `naturalHeight` (aka intrinsic width/height in CSS terms) of the referenced image. A `complete` property to indicate whether it is done loading, and of course `srcset` and `sizes`, which we've talked about but haven't specced yet.


See https://github.com/w3c/svgwg/issues/208

Received on Friday, 11 May 2018 06:02:00 UTC