Re: [svgwg] Serialization format for path strings

My strong preference is:

- Serialization should only normalize syntax:
  * insert omitted segment type names ("L5,16 33,44"→"L5,16 L33,44")
  * standardize whitespace/commas
- Changing segment type is a change in the value specified, and should only happen in order to generate intermediate values in animation/transitions.

Changing segment type automatically will make it very difficult to create a full replacement for the old `SVGPathSeg` interfaces ([SVG 1.1](https://www.w3.org/TR/SVG11/paths.html#InterfaceSVGPathSeg), [proposed SVG 2 module](https://svgwg.org/specs/paths/#InterfaceSVGPathSegment)). It would also break many JS animation libraries, like d3, if an author tried to use them with the style property instead of the attribute.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/svgwg/issues/321#issuecomment-423257880 using your GitHub account

Received on Thursday, 20 September 2018 16:59:35 UTC