W3C home > Mailing lists > Public > www-svg@w3.org > November 2010

Allowing path data to start with any segment type

From: Jonathan Watt <jwatt@jwatt.org>
Date: Thu, 11 Nov 2010 16:20:18 +0000
Message-ID: <4CDC17C2.50602@jwatt.org>
To: www-svg <www-svg@w3.org>
The spec currently says that paths must start with a moveto command. I see no
benefit in that requirement, and it acts as yet another gotcha. For authors who
happen to want to start their path at {0,0} and assume they can omit the initial
moveto, it's annoying to find their path is rejected. It's also unhelpful in
cases when the path should start at a point other than {0,0}; rather than just
causing the path to start at {0,0} which would provide a clear visual indication
that the the moveto was forgotten, forgetting the moveto causes the path to fail
to draw completely, providing no visual cue as to why.

Would anyone have any objections to changing the spec to drop the requirement
that path data must start with a moveto segment? It would say instead that path
data that does not start with a moveto command should behave as if it started
with the segment "M0,0", although such an "implicit" moveto would not appear in
the DOM of course, since the author did not specify a moveto segment.

Jonathan
Received on Thursday, 11 November 2010 16:19:57 GMT

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