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/testing/web-platform/tests/svg/struct/reftests/use-adopted-with-external-resource.tentative.svg
<title>Adopting a &#x3c;use&#x3e; (from an inactive document) requests an external resource</title>
<h:link rel="match" href="reference/green-100x100.svg"/>
<script type="text/plain" template=""><![CDATA[
<use href="support/sprites.svg#green-rect"/>
</svg>]]>
</script>
<script>
let text = document.querySelector('script[template]').textContent;
let doc = new DOMParser().parseFromString(text, 'image/svg+xml');
document.documentElement.appendChild(doc.documentElement);
</script>
</svg>