summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/fragid-shadow-10.html
blob: a334a86aee83eea00f6f0c4a4f06a7b1ceb2624d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<style>
  #shadow rect {
    fill: red !important;
  }
</style>
<div id="host"></div>
<svg height="0">
  <!-- use an empty g to force fragid-shadow-resource.svg to load before onload -->
  <use href="fragid-shadow-resource.svg#empty" />
</svg>
<script>
  host.attachShadow({ mode: "open" }).innerHTML = `
    <svg width="100" height="100">
      <use href="fragid-shadow-resource.svg#shadow" />
    </svg>
  `;
</script>