layout/reftests/svg/path-03.svg

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

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

mercurial