summaryrefslogtreecommitdiffstats
path: root/layout/reftests/scoped-style/scoped-style-dynamic-015.svg
blob: f6d2c7a57c46d1c360ca110e8ad1e8b38e7afb01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<svg xmlns="http://www.w3.org/2000/svg" onload="f()">
  <rect width="50" height="50"/>
  <g>
    <style>
      rect { fill: blue }
    </style>
    <rect x="60" width="50" height="50"/>
  </g>
  <rect x="120" width="50" height="50"/>
  <script>
    function f() {
      document.getElementsByTagName("style")[0].scoped = true;
    }
  </script>
</svg>