W3C home > Mailing lists > Public > public-html@w3.org > June 2009

Re: canvas: globalAlpha should not throw

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 10 Jun 2009 06:16:16 +0000 (UTC)
To: Simon Pieters <simonp@opera.com>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0906100615350.1648@hixie.dreamhostps.com>
On Tue, 19 May 2009, Simon Pieters wrote:
>
> The spec doesn't call out NaN and Infinity for globalAlpha. I think 
> globalAlpha should be handled consistently with the other canvas 
> attributes and not throw an exception.
> 
> http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-globalalpha

The spec says:

   Unless otherwise stated, for the 2D context interface, any method call 
   with a numeric argument whose value is infinite or a NaN value must be 
   ignored.

...and doesn't appear to contradict this in the definition of globalAlpha. 
Am I missing something?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 10 June 2009 06:16:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:38 GMT