layout/reftests/svg/path-03.svg

branch
TOR_BUG_9701
changeset 14
925c144e1f1f
equal deleted inserted replaced
-1:000000000000 0:cf2606c42111
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">
6
7 <title>Testcase for invalid path</title>
8
9 <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=601699 -->
10
11 <marker id="marker" markerWidth="10" markerHeight="10">
12 <circle cx="5" cy="5" r="5"/>
13 </marker>
14
15 <rect width="100%" height="100%" fill="lime"/>
16
17 <path id="path" fill="red" marker-mid="url(#marker)"/>
18
19 <script><![CDATA[
20
21 // Parser will throw out path without an initial moveto command, so we use
22 // script to inject one and see what happens.
23
24 var path = document.getElementById("path");
25 var curve = path.createSVGPathSegCurvetoCubicAbs(0, 400, 400, 400, 400, 0);
26 path.pathSegList.appendItem(curve);
27
28 ]]></script>
29 </svg>

mercurial