layout/reftests/svg/path-03.svg

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

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>

mercurial