summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/reuse-sc-style-change-nested-1.html
blob: 73318a2e4b593460e2ee2ff1af424b776f6779cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html class="reftest-wait">

<head>
  <meta charset="UTF-8">
</head>

<body>
  <div style="will-change: transform;" class="reftest-no-display-list">
    Foo
    <div style="will-change: transform;">
      Baz
    </div>
  </div>
  <div style="color: red;" id="changed">
    Bar
  </div>
  <script>
    function doTest() {
      const e = document.getElementById('changed');
      e.style.color = 'green';
      document.documentElement.removeAttribute('class');
    }
    document.addEventListener("MozReftestInvalidate", doTest);
  </script>
</body>

</html>