Re: [whatwg] Why CanvasRenderingContext2D uses WebIDL unrestricted float type?

2015-03-25 Thread Tetsuharu OHZEKI
I understand the reason. Thank you! Tetsuharu OHZEKI 2015/03/25 午前5:37 Boris Zbarsky bzbar...@mit.edu: On 3/24/15 4:06 PM, Tetsuharu OHZEKI wrote: But I think that, why don't CanvasRenderingContext2D use restricted float type defined in WebIDL if these methods ignore the value when its is

Re: [whatwg] Why CanvasRenderingContext2D uses WebIDL unrestricted float type?

2015-03-24 Thread Rik Cabanier
On Tue, Mar 24, 2015 at 1:06 PM, Tetsuharu OHZEKI saneyuki.s...@gmail.com wrote: Hi everybody. I have a question about the definition of CanvasRenderingContext2D's behavior. The current spec about CanvasRenderingContext2D says the following: Except where otherwise specified, for the 2D

Re: [whatwg] Why CanvasRenderingContext2D uses WebIDL unrestricted float type?

2015-03-24 Thread Boris Zbarsky
On 3/24/15 4:06 PM, Tetsuharu OHZEKI wrote: But I think that, why don't CanvasRenderingContext2D use restricted float type defined in WebIDL if these methods ignore the value when its is not finite? Because they want to ignore the value. By the current WebIDL spec