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

37 lines
843 B
XML
Raw Normal View History

2009-07-28 17:26:39 -07:00
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
2009-07-28 17:26:39 -07:00
-->
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"
onload="startTest()">
<script>
<![CDATA[
function startTest() {
document.addEventListener("MozReftestInvalidate", boom, false);
setTimeout(doTest, 4000); // fallback for running outside reftest
2009-07-28 17:26:39 -07:00
}
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>