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

38 lines
830 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/licenses/publicdomain/
-->
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait"
onload="startTest()">
<script>
<![CDATA[
function startTest() {
document.addEventListener("MozReftestInvalidate", boom, false);
// in case we're not gecko
setTimeout(boom, 5000);
}
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>