summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/reuse-sc-style-change-1.html
blob: 9aaad24966167d85f592cff3be433c01619be020 (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
<!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>
  <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>