Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: ManualTests/animation/compositor-reverse.html

Issue 649563003: Web Animations: Compositor timeOffset should be sensitive to playback rate (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ManualTests/animation/compositor-reverse.html
diff --git a/ManualTests/animation/compositor-reverse.html b/ManualTests/animation/compositor-reverse.html
new file mode 100644
index 0000000000000000000000000000000000000000..2ed9b576a126fb77234f52e34bb6d3165efbd058
--- /dev/null
+++ b/ManualTests/animation/compositor-reverse.html
@@ -0,0 +1,27 @@
+<style>
+div {
+ height: 100px;
+ width: 100px;
+ background: blue;
+}
+</style>
+<p>
+The two squares should <strong>smoothly</strong> rock backwards and forwards.
+<div id="target1"></div>
+<div id="target2"></div>
+<script>
+var player1 = target1.animate([
+ {transform: 'none'},
+ {transform: 'rotate(90deg)'}
+], 1000);
+
+var player2 = target2.animate([
+ {transform: 'none', background: 'blue'},
+ {transform: 'rotate(90deg)', background: 'blue'}
+], 1000);
+
+setInterval(function() {
+ player1.reverse();
+ player2.reverse();
+}, 100);
+</script>
« no previous file with comments | « no previous file | Source/core/animation/AnimationPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698