summaryrefslogtreecommitdiffstats
path: root/layout/style/crashtests/1383001.html
blob: e963c847f691a38be2dd6969759a73908b9aa296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!doctype html>
<html class="reftest-wait">
<div id="test" contenteditable>
  <div id="first"></div>
</div>
<script>
document.body.offsetTop;
let anim = document.createElement('div');
anim.animate({ color: ['red', 'green' ] }, 1000);
first.appendChild(anim);

let child = document.createElement('span');
child.innerText = 'text';

requestAnimationFrame(() => {
  requestAnimationFrame(() => {
    anim.appendChild(child);
    test.appendChild(anim);
    document.documentElement.className = "";
  });
});
</script>
</html>