Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/reftests/bugs/315920-20.svg
<?xml version="1.0" standalone="no"?>
<?xml-stylesheet href="315920-20-style.css" type="text/css"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
<svg width="4in" height="3in" version="1.1"
class="reftest-wait">
<desc>This graphic links to an external image
</desc>
<script type="text/javascript"> <![CDATA[
function onloadHandler() {
var image = document.getElementById("i1");
image.addEventListener("load",
function() {
document.documentElement.removeAttribute("class");
},
false);
image.setAttributeNS("http://www.w3.org/1999/xlink",
"href", "solidblue.png");
}
window.addEventListener("load", onloadHandler, false);
]]>
</script>
<image id="i1" x="200" y="200" width="100px" height="80px"
xlink:href="no-such-scheme:nothing">
</image>
<circle cx="100" cy="50" r="40" stroke="black" stroke-width="2" fill="red"/>
</svg>