1383001.html (523B)
1 <!doctype html> 2 <html class="reftest-wait"> 3 <div id="test" contenteditable> 4 <div id="first"></div> 5 </div> 6 <script> 7 document.body.offsetTop; 8 let anim = document.createElement('div'); 9 anim.animate({ color: ['red', 'green' ] }, 1000); 10 first.appendChild(anim); 11 12 let child = document.createElement('span'); 13 child.innerText = 'text'; 14 15 requestAnimationFrame(() => { 16 requestAnimationFrame(() => { 17 anim.appendChild(child); 18 test.appendChild(anim); 19 document.documentElement.className = ""; 20 }); 21 }); 22 </script> 23 </html>