summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-animations/simultaneous-animations-crash.html
blob: 223741157e152349195c8bfcc3f83217b7ad1c22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html class="test-wait">
<title>CSS animations test: No crash should occur when an animation ends while other animations continue</title>
<link rel="author" title="Philip Rogers" href="mailto:pdr@chromium.org">
<link rel="help" href="https://crbug.com/1213307">
<style>
  @keyframes animationKeyframes {
    from { opacity: 0.1; filter: blur(1px); }
    to { opacity: 0.9; filter: blur(5px); }
  }
</style>
<div id="longerAnimEl" style="animation: animationKeyframes 64ms;">a</div>
<div id="shorterAnimEl" style="animation: both animationKeyframes 32ms;">b</div>
<script>
  longerAnimEl.addEventListener('animationend', () => {
    document.documentElement.classList.remove('test-wait');
  });
</script>
</html>