summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/501257-1b.html
blob: ed83afa37719111f9dd532127f4e3a1e53e28acf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html>
  <head>
    <style>
      body > div { color: green; }
      .toremove { color: red; }
    </style>
  </head>
  <body>
    <div class="toremove">
      This should be green
    </div>
    <script>
      document.body.firstElementChild.classList.remove("toremove");
    </script>
  </body>
</html>