W3C home > Mailing lists > Public > www-svg@w3.org > June 2018

Rectangle height and width

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Sat, 09 Jun 2018 13:42:33 +0200
To: www-svg@w3.org
Message-ID: <op.zkcas7lbsmjzpq@steven-xps>
https://svgwg.org/svg2-draft/shapes.html#RectElement

"The width and height properties define the overall width and height of  
the rectangle. A negative value for either property is illegal and must be  
ignored as a parsing error."

Please please please fix this! There is absolutely no abstract  
justification for saying a rectangle cannot have a negative height (or  
width). It's just the same dimension in the other direction!

If you're interested in a very natural use case, please see
https://homepages.cwi.nl/~steven/xforms/histogram.html

(There are probably other places in the spec where negative values are  
unnecessarily restricted, but this is the one that I ran into in the above  
example).

Best wishes,

Steven Pemberton
CWI, Amsterdam
Received on Saturday, 9 June 2018 11:43:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:55:14 UTC