[whatwg] Canvas Zero/NaN/Infinity issues

Ian Hickson ian at hixie.ch
Tue Jan 15 18:22:24 PST 2008


On Thu, 17 May 2007, Philip Taylor wrote:
> 
> I think the definitions would have to say to handle -Infinity as well as 
> Infinity, and say setTransform with finite arguments un-sets the "marked 
> as finite" flag, and maybe say that "marked as finite" is saved/restored 
> along with the transformation matrix.

Right now (this changed recently) the spec is silent on infinities as 
opposite to finite coordinates, but I believe a strict reading implies you 
have to do the mathematically correct thing -- that is, just like you have 
to be able to handle huge numbers (1e200), you have to be able to handle 
Infinity.

-- 
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