summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/fragid-shadow-9.html
blob: c689d7659042ba1d97e7573785162b493017c25d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!doctype html>
<style>
  #shadow {
    fill: red;
  }
</style>
<div id="host"></div>
<script>
  host.attachShadow({ mode: "open" }).innerHTML = `
    <style>
      #shadow {
        fill: lime;
      }
    </style>
    <svg width="100" height="100">
      <defs>
        <g id="shadow" width="100" height="100">
          <rect width="100" height="100" />
        </g>
      </defs>
      <use href="#shadow" />
    </svg>
  `;
</script>