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

[whatwg] Compatibility problems with HTML5 Canvas spec.

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 1 Feb 2008 05:34:22 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0802010533460.3212@hixie.dreamhostps.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 31 January 2008 21:34:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:00 UTC