summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/dynamic-marker-02.svg
blob: 88e427bc85fce0eb113d7a1a1a15ce4226f7a36c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"
  onload="startTest()">

<script>
<![CDATA[

function startTest() {
  document.addEventListener("MozReftestInvalidate", boom, false);
  setTimeout(boom, 4000); // fallback for running outside reftest
}

function boom() {
  n = document.getElementById("m1");
  n.style.overflow = "visible";
  document.documentElement.removeAttribute("class");
}

]]>
</script>

  <defs>
	  <marker id="m1" orient="auto" markerUnits="strokeWidth">
		  <rect width="100%" height="100%" fill="blue"/>
	  </marker>
  </defs>

	
  <rect width="100%" height="100%" fill="yellow"/>
	
  <line x1="30" x2="30" y1="10" y2="10" stroke="red" stroke-width="3" marker-end="url(#m1)"/>

</svg>