[whatwg] Compatibility problems with HTML5 Canvas spec.

Ian Hickson ian at hixie.ch
Thu Jan 31 21:34:22 PST 2008

On Tue, 25 Sep 2007, Vladimir Vukicevic wrote:
> I agree that throwing an exception is probably unnecessary, as there are very
> few other places in the API where such exceptions are thrown (except when the
> input is of clearly the wrong type).  Normalizing seems to be the most useful
> approach -- that is, the functions that take x,y,w,h would be defined to
> create a rectangle with its two corners being (x,y) and (x+w,y+h), regardless
> of the sign of w/h

I've gone through the canvas API and defined this behaviour for all 
methods that took rects of one kind or another.

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