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