summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/748692-1b.html
blob: 6e017694bc839c66b1eaacb4739394e87f59f5c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<head>
  <style class="foo">
    body { color: red; }
  </style>
  <script>
    document.styleSheets[0].insertRule("body { color: green; }", 1);
    document.querySelector("style").removeAttribute("class");
  </script>
</head>
<body>
  This text should be green
</body>