Re: [whatwg] Canvas normalize rect() and strokeRect()

2014-04-07 Thread Justin Novosad
On Mon, Apr 7, 2014 at 10:47 AM, Rik Cabanier caban...@gmail.com wrote: On Mon, Apr 7, 2014 at 7:29 AM, Justin Novosad ju...@google.com wrote: Putting myself the the web devs shoes... If I negate the height of a rect, what would I expect? My first though: a horizontally flipped mirror

Re: [whatwg] Canvas normalize rect() and strokeRect()

2014-04-06 Thread Dirk Schulze
On Apr 6, 2014, at 3:23 AM, Rik Cabanier caban...@gmail.com wrote: On Sat, Apr 5, 2014 at 9:01 AM, Dirk Schulze dschu...@adobe.com wrote: Hi, I looked at the behavior of negative width or height for the rect() and strokeRect() functions. All browsers normalize the passed

Re: [whatwg] Canvas normalize rect() and strokeRect()

2014-04-06 Thread Rik Cabanier
On Sat, Apr 5, 2014 at 11:00 PM, Dirk Schulze dschu...@adobe.com wrote: On Apr 6, 2014, at 3:23 AM, Rik Cabanier caban...@gmail.com wrote: On Sat, Apr 5, 2014 at 9:01 AM, Dirk Schulze dschu...@adobe.com wrote: Hi, I looked at the behavior of negative width or height for the

Re: [whatwg] Canvas normalize rect() and strokeRect()

2014-04-06 Thread Dirk Schulze
On Apr 6, 2014, at 8:24 AM, Rik Cabanier caban...@gmail.com wrote: On Sat, Apr 5, 2014 at 11:00 PM, Dirk Schulze dschu...@adobe.com wrote: On Apr 6, 2014, at 3:23 AM, Rik Cabanier caban...@gmail.com wrote: On Sat, Apr 5, 2014 at 9:01 AM, Dirk Schulze dschu...@adobe.com wrote:

[whatwg] Canvas normalize rect() and strokeRect()

2014-04-05 Thread Dirk Schulze
Hi, I looked at the behavior of negative width or height for the rect() and strokeRect() functions. All browsers normalize the passed parameters for strokeRect() to have positive width and height. strokeRect(90,10,-80,80) — strokeRect(10,10,80,80) http://jsfiddle.net/za945/ Just WebKit

Re: [whatwg] Canvas normalize rect() and strokeRect()

2014-04-05 Thread Rik Cabanier
On Sat, Apr 5, 2014 at 9:01 AM, Dirk Schulze dschu...@adobe.com wrote: Hi, I looked at the behavior of negative width or height for the rect() and strokeRect() functions. All browsers normalize the passed parameters for strokeRect() to have positive width and height.