- From: Regina Henschel <rb.henschel@t-online.de>
- Date: Mon, 11 Jun 2018 21:12:13 +0200
- To: www-svg@w3.org
Hi Steven, Steven Pemberton schrieb am 09.06.2018 um 13:42: > 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! I disagree with that. "width" and "height" are length and therefore cannot be negative. You want the stroke to go into the other direction? You can get that easily using a path element. So e.g. instead of an (invalid) <rect x="200" y="300" width="-100" height="-200"/> use a <path d="M 200,300 h-100 v-200 h100 Z"/> Or in case you need a mirrored filling, you can use a rect with positive width and height and add a transformation. Kind regards Regina
Received on Monday, 11 June 2018 19:12:52 UTC