layout/reftests/svg/fragid-shadow-5.html
author Emilio Cobos Álvarez <emilio@crisal.io>
Fri, 17 Aug 2018 11:35:15 +0000
changeset 487225 9c08d6d5d6f29b6bd44166cc1054d2f4b31c77d6
parent 487194 d25d4da4aad2c680854931bdde183f0e2f8948c7
permissions -rw-r--r--
Bug 1483882 - Teach IDTracker about Shadow DOM. r=smaug Differential Revision: https://phabricator.services.mozilla.com/D3533

<!doctype html>
<p>Should see a green square below</p>
<div id="host"></div>
<script>
  // Test absolute URIs inside shadow trees, which behave the same way as just the fragment id.
  host.attachShadow({ mode: "open" }).innerHTML = `
    <svg width="100" height="100">
      <defs>
        <rect fill="lime" id="rect-5" width="100" height="100">
      </defs>
      <use href="${location.href}#rect-5" />
    </svg>
  `;
</script>