[whatwg] strokeRect() with zero heights or widths

Anne van Kesteren fora at annevankesteren.nl
Sat May 20 07:06:32 PDT 2006


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




More information about the whatwg mailing list