Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!--
2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
4 -->
5 <svg xmlns="http://www.w3.org/2000/svg">
7 <title>Testcase for invalid path</title>
9 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=601699 -->
11 <marker id="marker" markerWidth="10" markerHeight="10">
12 <circle cx="5" cy="5" r="5"/>
13 </marker>
15 <rect width="100%" height="100%" fill="lime"/>
17 <path id="path" fill="red" marker-mid="url(#marker)"/>
19 <script><![CDATA[
21 // Parser will throw out path without an initial moveto command, so we use
22 // script to inject one and see what happens.
24 var path = document.getElementById("path");
25 var curve = path.createSVGPathSegCurvetoCubicAbs(0, 400, 400, 400, 400, 0);
26 path.pathSegList.appendItem(curve);
28 ]]></script>
29 </svg>