Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can an SVG <path> contain both absolute and relative commands?

Tags:

path

svg

Currently I'm developing an app that converts svg-paths created by Inkscape. Now I'm not clear about the path specification regarding absolute and relative path-combinations. Does the specification say anything about a path definition, that holds relative and absolute coodinates at the same time?

Espacially the case regarding an absolute bezier curve followed by a relative shorthand bezier curve ?

If this case is possible, then I have to compute and keep the current absolute path to make sure I can compute the first controle point of a relative shorthand curve.

Should I ask the question the Inkscape authors ?

like image 294
user325746 Avatar asked Dec 17 '22 23:12

user325746


1 Answers

Yes mixing absolute and relative path commands is allowed. If you are implementing a tool I'd advise you to read the specification, and the path data section in particular.

like image 127
Erik Dahlström Avatar answered Dec 26 '22 14:12

Erik Dahlström