summaryrefslogtreecommitdiffstats
path: root/layout/reftests/scoped-style/scoped-style-dynamic-007.html
blob: 6403cc5296e99256b129f6229c15b5589490924a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<body onload="f()">
  <p>First</p>
  <div>
    <style scoped>
      p { color: green }
    </style>
    <p>Second</p>
  </div>
  <script>
    function f() {
      var p = document.getElementsByTagName("p")[1];
      document.body.appendChild(p);
    }
  </script>
</body>