summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/compositing/opacity-and-transform-animation-crash.html
blob: 294a823cd8ee0b7e5f289d2b623d59c7ceaa9f18 (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
<!DOCTYPE HTML>
<html class=test-wait>
<style type="text/css">
  @keyframes anim {
    from {
      opacity: 0.99;
    }
    to {
      opacity: 0.9;
      transform: scale(1, 1);
    }
  }
</style>
<div id="div" style="transform: scale(1, 10); animation: 50ms linear 0s anim;"></div>
<script>
  function boom() {
    div.style.transform = '';
    document.execCommand("SelectAll", false, "");
    requestAnimationFrame(function() {
      requestAnimationFrame(function() {
        document.documentElement.classList.remove('test-wait');
      });
    });
  }
  setTimeout(boom, 50);
</script>
</html>