- From: Erik Dahlström <ed@opera.com>
- Date: Wed, 07 May 2008 13:06:59 +0200
- To: "public-svg-wg@w3.org" <public-svg-wg@w3.org>
Hello public-svg-wg, A question regarding path normalization: - When closing a subpath with the SVGPath.close() method, does it add a LINE_TO if the coordinate of the start doesn't match the end coordinate? The path normalization list doesn't mention this case. It has implications for both the SVGPath interface and path animation/interpolation[4]. The testcase udom-svgpath-201-t.svg[2] assumes that a lineto is not added. SVG 1.1 [3] doesn't disallow normalizing a close command as lineto+close, it only states the set of allowed normalized commands (so even if you wanted to normalize close as curveto+lineto+close you'd be free to do so). The following two paths are not interpolable[4] if the lineto isn't added as a normalization step: <path d="M0 0l10 10z"/> <path d="M0 0l10 10l-10 -10z"/> I would like the 1.2T spec to define how close commands should be normalized. Cheers /Erik [1] http://www.w3.org/Graphics/SVG/Group/repository/spec/mobile/1.2/1.2NG/publish/svgudom.html#PathNormalization [2] http://www.w3.org/Graphics/SVG/Group/repository/testsuite/1.2T/svg/udom-svgpath-201-t.svg [3] http://www.w3.org/TR/SVG11/paths.html#InterfaceSVGAnimatedPathData [4] http://www.w3.org/Graphics/SVG/Group/repository/spec/mobile/1.2/1.2NG/publish/paths.html#PathDataAnimation -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed
Received on Wednesday, 7 May 2008 11:09:46 UTC