layout/reftests/svg/dynamic-marker-02.svg

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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" class="reftest-wait"
     6   onload="startTest()">
     8 <script>
     9 <![CDATA[
    11 function startTest() {
    12   document.addEventListener("MozReftestInvalidate", boom, false);
    13   setTimeout(boom, 4000); // fallback for running outside reftest
    14 }
    16 function boom() {
    17   n = document.getElementById("m1");
    18   n.style.overflow = "visible";
    19   document.documentElement.removeAttribute("class");
    20 }
    22 ]]>
    23 </script>
    25   <defs>
    26 	  <marker id="m1" orient="auto" markerUnits="strokeWidth">
    27 		  <rect width="100%" height="100%" fill="blue"/>
    28 	  </marker>
    29   </defs>
    32   <rect width="100%" height="100%" fill="yellow"/>
    34   <line x1="30" x2="30" y1="10" y2="10" stroke="red" stroke-width="3" marker-end="url(#m1)"/>
    36 </svg>

mercurial