[whatwg] Canvas spec issues

Ian Hickson ian at hixie.ch
Tue May 15 17:50:22 PDT 2007


On Tue, 15 May 2007, Philip Taylor wrote:
> 
>    var dataURL = canvas.toDataURL(); // dataURL is just a string
>    var img = new Image();
>    img.src = dataURL; // img is an image that was generated from a
> data: URI found in this Document, so its origin is the origin of this
> Document
>    img.onload = function() {
>        ctx.drawImage(img, 0, 0); // img has the same origin as this
> script (since the origin of this script is the origin of this
> Document)
>        canvas.toDataURL(); // ...so it's fine to call this again
>    }

Yup.


> > > The colour parsing refers to [CSS3COLOR]. No profile is described, 
> > > so presumably all of CSS3 Color should be supported. In that case: 
> > > what should "currentColor" do, since its CSS definition makes no 
> > > sense here?
> > 
> > It makes sense -- it's the value of the 'color' property.
> 
> The 'color' property of the <canvas> element?

Right.

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



More information about the whatwg mailing list