Status: FAIL | Duration: 55ms | Subtests: 0/1 | Open test on wpt.live | wpt.fyi
/svg/struct/reftests/use-cross-origin.svg
<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink"> <title><use> with a cross-origin resource</title> <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/struct.html#UseElementHrefAttribute"/> <h:link rel="match" href="reference/green-100x100.svg"/> <rect width="100" height="100" fill="green"/> <script> const svg = document.querySelector('svg'); const use = document.createElementNS('http://www.w3.org/2000/svg', 'use'); use.setAttribute('href', location.href.replace('://', '://www1.') + '/../support/red-rect.svg#red-rect'); svg.appendChild(use); </script> </svg>