summaryrefslogtreecommitdiffstats
path: root/layout/reftests/display-list/reuse-sc-style-change-abs-pos-1.html
blob: 027bf0a4e8ba42da330f86867a1da3f7c2aed4c6 (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="position: absolute; 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>