summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/animations/multiple-same-animations-asan-crash.html
blob: 3a22397435e8ff1e6d031786e70539767e5b8327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<style>
#target {
  animation: test 1s, test 2s;
}
@keyframes test {
  to { color: green; }
}
</style>
<div id="target"></div>
<script>
var asyncHandle = async_test('Don\'t crash ASAN when updating style with an element that has two animations with the same keyframes name and different timings.');
// Wait a frame to let the animations get created.
requestAnimationFrame(function() {
  // Force the next style recalc to be non-animation triggered.
  target.style.color = 'blue';
  requestAnimationFrame(function() {
    asyncHandle.done();
  });
});
</script>