Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/animations/use-external-resource-animate.html - WPT Dashboard Interop Dashboard
<!doctype html>
<html class="reftest-wait">
<title>SMIL animation instanced into a use-element shadow tree from an external SVG</title>
<link rel="match" href="../struct/reftests/reference/green-100x100.html">
<script src="/common/reftest-wait.js"></script>
<svg><use href="resources/use-instance-animations.svg#parent-target"/></svg>
<script>
// The external resource delays the load event, so the shadow tree exists here.
window.onload = () => {
const svg = document.querySelector('svg');
svg.pauseAnimations();
svg.setCurrentTime(1);
requestAnimationFrame(() => requestAnimationFrame(takeScreenshot));
};
</script>