W3C home > Mailing lists > Public > public-html@w3.org > June 2010

Re: Canvas drawImage question

From: Maciej Stachowiak <mjs@apple.com>
Date: Fri, 11 Jun 2010 07:49:10 -0700
Cc: HTML WG <public-html@w3.org>
Message-id: <5BBE8683-30C2-4509-90BA-39F9E722DC92@apple.com>
To: Boris Zbarsky <bzbarsky@mit.edu>

On Jun 11, 2010, at 7:41 AM, Boris Zbarsky wrote:

> I was just reading the drawImage section, and it seems that the arguments are restricted to HTMLImageElement, HTMLCanvasElement, and HTMLVideoElement for some reason.  Gecko also supports HTMLInputElement (if of type="image"), HTMLObjectElement (if rendering an image), as well as <svg:image> and <svg:feImage>.
> Is there a good reason for the spec's restriction here?  In particular, why is <svg:image> not allowed?  But ideally any of the image elements above would be usable here.

I'm not sure it would be good to make the API conditionally support particular elements, depending on their state. That would apply to your HTMLInputElement and HTMLObjectElement proposals. svg:feImage also only conditionally refers to an image and in other cases is supposed to behave like the 'use' element.

I think adding svg:img would make sense.

Received on Friday, 11 June 2010 14:49:44 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:20 UTC