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

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

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Thu, 17 Aug 2006 14:38:12 +0200
To: www-svg@w3.org
Message-Id: <200608171438.12377.Dr.O.Hoffmann@gmx.de>


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.

Best wishes
Received on Thursday, 17 August 2006 12:34:30 UTC

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