// Animation is initially running on compositor
await waitForPaintsFlushed();
advance_clock(5000);
omta_is(div, 'transform', { tx: 50 }, RunningOn.Compositor, 'Animation is initally animating on compositor');
// Reverse animation
animation.reverse();
// At this point the playbackRate has changed but the transform will
// not have changed.
await waitForPaints();
omta_is(div, 'transform', { tx: 50 }, RunningOn.Compositor, 'Animation value does not change after being reversed');
// However, we should still have sent a layer transaction to update the
// playbackRate on the compositor so that on the next tick we advance
// in the right direction.
advance_clock(1000);
omta_is(div, 'transform', { tx: 40 }, RunningOn.Compositor, 'Animation proceeds in reverse direction');
done_div();
});
</script>
</body>
</html>
Messung V0.5
[ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
]