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

Re: Canvas drawImage question

From: Simon Pieters <simonp@opera.com>
Date: Fri, 11 Jun 2010 17:01:41 +0200
To: "Boris Zbarsky" <bzbarsky@mit.edu>, "Maciej Stachowiak" <mjs@apple.com>
Cc: "HTML WG" <public-html@w3.org>
Message-ID: <op.vd45c32hidj3kv@simon-pieterss-macbook.local>
On Fri, 11 Jun 2010 16:49:10 +0200, Maciej Stachowiak <mjs@apple.com>  

> 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.

HTMLImageElement and HTMLVideoElement are conditionally usable depending  
on whether the data is available yet.

Opera supports SVGSVGElement.

Simon Pieters
Opera Software
Received on Friday, 11 June 2010 15:02:23 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:25:48 UTC