summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1401801.html
blob: 1dedd1fff17d1890449660c854eb5aae7ac3f4ae (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
<!DOCTYPE html>
<html class="reftest-wait">
<style>
#test {
  display: none;
  width: 100px;
  height: 100px;
}
</style>
<div id="test"></div>
<script>
  test.animate({ backgroundColor: [ 'red', 'blue' ] },
               { duration: 1000,
                 iterations: Infinity });

  requestAnimationFrame(() => {
    requestAnimationFrame(() => {
      document.styleSheets[0].cssRules[0].style.setProperty('display', 'block');
      test.getBoundingClientRect();
      document.documentElement.classList.remove('reftest-wait');
    });
  });
</script>
</html>