Re: [whatwg] strokeRect() with zero heights or widths

2006-05-28 Thread Henri Sivonen
On May 28, 2006, at 12:38, Vladimir Vukicevic wrote: Now, to be fair, I don't really care either way, just looking for consistency... should using fillRect/strokeRect be defined as convenience functions doing the same job as creating a rectangular path and calling fill/stroke? What do underlyi

Re: [whatwg] strokeRect() with zero heights or widths

2006-05-28 Thread Vladimir Vukicevic
Doesn't a zero-width (or zero-height, as long as it's only one) degenerate into a vertical (horizontal) line when stroked, due to the line width? A filled rectangle doesn't, because the area to fill is defined exactly by the rectangular path (which has 0 thickness), whereas a stroked path takes t

[whatwg] strokeRect() with zero heights or widths

2006-05-20 Thread Anne van Kesteren
I think http://whatwg.org/specs/web-apps/current-work/#strokerect must have no effect when it has a zero height or width (or both). Currently Safari, Firefox and Opera act that way when they are both zero and Safari acts that way for all cases. Firefox and Opera draw a small line when eithe