[svgwg] Issue: Shorter equivalent path for the <rect> element marked as DoC_positiveResponse

nikosandronikos has just labeled an issue for 
https://github.com/w3c/svgwg as "DoC_positiveResponse":

== Shorter equivalent path for the <rect> element ==
Currently, the spec defines an equivalent path for a `<rect>` element 
as follows:

> 1. Perform an absolute moveto operation to location (x+rx,y), where 
x is the value of the ‘rect’ element's x attribute converted to user 
space, rx is the effective value of the rx attribute converted to 
local coordinate system and y is the value of the y attribute 
converted to local coordinate system
2. Perform an absolute horizontal lineto operation to location 
(x+width-rx,y), where width is the ‘rect’ element's width attribute 
converted to user space
3. Perform an absolute elliptical arc operation to coordinate 
(x+width,y+ry), where the effective values for the rx and ry 
attributes on the ‘rect’ element converted to local coordinate system 
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
4. Perform a absolute vertical lineto to location 
(x+width,y+height-ry), where height is the ‘rect’ element's height 
attribute converted to user space
5. Perform an absolute elliptical arc operation to coordinate 
(x+width-rx,y+height)
6. Perform an absolute horizontal lineto to location (x+rx,y+height)
7. Perform an absolute elliptical arc operation to coordinate 
(x,y+height-ry)
8. Perform an absolute absolute vertical lineto to location (x,y+ry)
9. Perform an absolute elliptical arc operation to coordinate (x+rx,y)
[Source](https://svgwg.org/svg2-draft/shapes.html#RectElement)

I would make steps 3, 5, 7 and 9 optional. Basically, don't add 
unnecesarry elliptical arcs when the effective values of both rx and 
ry are 0.

See https://github.com/w3c/svgwg/issues/154

Received on Sunday, 7 August 2016 22:36:24 UTC