W3C home > Mailing lists > Public > www-svg@w3.org > August 2006

RE: SVG Tiny 1.2 CR2006-08-10: 9.2 rect element with rounded corners

From: Doug Schepers <doug.schepers@vectoreal.com>
Date: Thu, 17 Aug 2006 11:41:23 -0400
To: "'Dr. Olaf Hoffmann'" <Dr.O.Hoffmann@gmx.de>, <www-svg@w3.org>
Message-Id: <20060817154126.3530C4B8EE@postalmail-a3.dreamhost.com>

Hi, Dr. Hoffmann-

Thanks for your comment.

Dr. Olaf Hoffmann wrote:
| 
| while I'm starting to create some documents as examples and 
| test cases for SVG Tiny 1.2 I discovered unfortunately a minor 
| formal or logical problem with the definition of the rect element.
| 
| It is specified:
| "A 'rect' element, taking its rounded corners into account, 
| must be rendered in a way that produces the same result as if 
| the following path were specified instead:
| ....
| perform an absolute elliptical arc operation to coordinate (x+rx,y), 
| where the effective values for the rx and ry attributes on the 'rect' 
| element converted to user space are used as the rx and ry attributes 
| on the elliptical arc command, respectively, the x-axis-rotation is 
| set to zero, the large-arc-flag is set to zero, and the sweep-flag 
| is set to one
| ....
| the elliptical arc commands
| ...."
| 
| For this it is referenced to the path chapter of SVG Tiny 1.2.
| Of course, this chapter does not describe elliptical arc 
| operations or commands, because they are not part of 
| SVG Tiny 1.2, therefore it is not possible to specify a
| rectangle with rounded corners as a SVG Tiny path.
| It is very useful to have this representation as a path 
| for example to determine how stroke-dasharray has to be rendered
| correctly, but the link to the path chapter is misleading for 
| readers, it would be more helpful to have a link to the path chapter
| of SVG 1.1, which contains path commands for elliptical arcs
| and the description of parameters like x-axis-rotation, 
| large-arc-flag 
| and sweep-flag, which are not understandable with the SVG Tiny 1.2
| CR alone.

Thanks for catching this, and for proposing a fix.  Your solution seems like
a good one to me.  I have placed this on the agenda for our next telcon on
Tuesday, and you should have a speedy resolution on this.

Thanks-
Doug, on behalf of the SVG WG
Received on Thursday, 17 August 2006 15:41:33 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:35 GMT