<script src="../resources/testharness.js"></script> | |
<script src="../resources/testharnessreport.js"></script> | |
<div id="target"></div> | |
<script> | |
var asyncHandle = async_test('Delayed animations are unaffected by on demand timeline updates.'); | |
target.animate(null, {delay: 100}).onfinish = () => asyncHandle.done(); | |
requestAnimationFrame(() => { | |
requestAnimationFrame(() => { | |
setTimeout(() => { | |
// Force layout tree update which forces an on demand timing update. | |
target.offsetTop; | |
}, 0); | |
}); | |
}); | |
</script> |