layout/reftests/svg/dynamic-marker-02.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.

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

mercurial