W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] [html5] image argument for drawImage (canvas)

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 12 Jan 2006 22:05:33 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0601122204580.9516@dhalsim.dreamhost.com>
On Thu, 12 Jan 2006, Anne van Kesteren wrote:
>
> Quoting Ian Hickson <ian at hixie.ch>:
> > > It is unclear whether or not styles are inherited when painting
> > > HTMLImageElement or HTMLCanvasElement. Most implementations do not seem
> > > to do anything with CSS at all that may be specified on
> > > HTMLImageElement, but it is not clear from the specification what
> > > exactly should be done with the argument (HTMLImageElement opr
> > > HTMLCanvasElement). I assume that in some way the resource pointed to by
> > > HTMLImageElement.src should be used and HTMLCanvasElement.toDataURL()...
> > 
> > I don't understand why the CSS would even be relevant. The spec says to
> > use the image of the HTMLImageElement (or HTMLCanvasElement); that image
> > is unrelated to CSS. You could implement <canvas> in a non-CSS UA.
> 
> Where does it say that? Could you quote that part?

"When drawImage is invoked, the specified region of the image specified by 
the source rectangle (sx, sy, sw, sh) is painted on the region of the 
canvas specified by the destination rectangle (dx, dy, dw, dh)."

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 12 January 2006 14:05:33 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:25 UTC