[whatwg] strokeRect() with zero heights or widths

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 either is larger than zero but that can easily be changed.  
It also makes the method more consistent with the other two.

For those "If either height or width are zero, this method has no  
effect." should probably be changed to "If either height or width are  
zero, this method must have no effect."


-- 
Anne van Kesteren
<http://annevankesteren.nl/>

Received on Saturday, 20 May 2006 07:06:32 UTC