1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/svg/path-03.svg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/publicdomain/zero/1.0/ 1.7 +--> 1.8 +<svg xmlns="http://www.w3.org/2000/svg"> 1.9 + 1.10 + <title>Testcase for invalid path</title> 1.11 + 1.12 + <!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=601699 --> 1.13 + 1.14 + <marker id="marker" markerWidth="10" markerHeight="10"> 1.15 + <circle cx="5" cy="5" r="5"/> 1.16 + </marker> 1.17 + 1.18 + <rect width="100%" height="100%" fill="lime"/> 1.19 + 1.20 + <path id="path" fill="red" marker-mid="url(#marker)"/> 1.21 + 1.22 + <script><![CDATA[ 1.23 + 1.24 +// Parser will throw out path without an initial moveto command, so we use 1.25 +// script to inject one and see what happens. 1.26 + 1.27 +var path = document.getElementById("path"); 1.28 +var curve = path.createSVGPathSegCurvetoCubicAbs(0, 400, 400, 400, 400, 0); 1.29 +path.pathSegList.appendItem(curve); 1.30 + 1.31 + ]]></script> 1.32 +</svg>