W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] strokeRect() with zero heights or widths

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Sat, 20 May 2006 16:06:32 +0200
Message-ID: <20060520160632.5gbs9oj6lo0owkoc@webmail.annevankesteren.nl>
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
Received on Saturday, 20 May 2006 07:06:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:46 UTC