| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 .run { | |
| 4 animation: foo 1s infinite alternate; | |
| 5 } | |
| 6 | |
| 7 @keyframes foo { | |
| 8 100% { | |
| 9 transform: translateX(100px) | |
| 10 } | |
| 11 } | |
| 12 </style> | |
| 13 <div id="target"></div> | |
| 14 <script src="../resources/testharness.js"></script> | |
| 15 <script src="../resources/testharnessreport.js"></script> | |
| 16 <script> | |
| 17 var test = async_test('Race between visibility and set compositor pending should
not crash'); | |
| 18 requestAnimationFrame(t => { | |
| 19 requestAnimationFrame(t => { | |
| 20 target.classList.add('run'); | |
| 21 setTimeout(() => { | |
| 22 testRunner.setPageVisibility("hidden"); | |
| 23 target.style.transform = 'translateX(50px)'; | |
| 24 target.offsetTop; | |
| 25 setTimeout(() => { | |
| 26 test.done(); | |
| 27 }, 0); | |
| 28 }, 0); | |
| 29 }); | |
| 30 }); | |
| 31 </script> | |
| OLD | NEW |