[whatwg] CanvasRenderingContext2D::createPattern and partially loaded images

On Fri, 8 Aug 2008, Eric Seidel wrote:
>
> http://www.whatwg.org/specs/web-apps/current-work/#createpattern
> 
> Notes that: The first argument gives the image to use as the pattern 
> (either an HTMLImageElement or an HTMLCanvasElement). Modifying this 
> image after calling the createPattern() method must not affect the 
> pattern.
> 
> What does this mean for images which are not yet fully loaded from the
> network?

Per the spec, if the image argument is an HTMLImageElement object whose 
complete attribute is false, then the implementation must raise an 
INVALID_STATE_ERR exception.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 30 April 2009 15:02:48 UTC