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

Unified Diff: LayoutTests/virtual/threaded/animations/compositor-rotate-zero-degrees.html

Issue 1322843002: Fix for rotate from 0deg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
Index: LayoutTests/virtual/threaded/animations/compositor-rotate-zero-degrees.html
diff --git a/LayoutTests/virtual/threaded/animations/compositor-rotate-zero-degrees.html b/LayoutTests/virtual/threaded/animations/compositor-rotate-zero-degrees.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b3cb471992ea9c92a001c93cb74d91b057bf567
--- /dev/null
+++ b/LayoutTests/virtual/threaded/animations/compositor-rotate-zero-degrees.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<style>
+div {
+ position: absolute;
+ width: 100px;
+ height: 100px;
alancutter (OOO until 2018) 2015/09/01 01:48:46 Set both divs to have "border-left: solid; border-
Eric Willigers 2015/09/01 06:32:10 Acknowledged.
+}
+
+#target {
+ border: solid red;
+}
+
+#expected {
+ border: solid green;
+}
+</style>
+
+<div id="target"></div>
+<div id="expected"></div>
+
+<script>
+expected.style.rotate = '225deg 1 0 0';
alancutter (OOO until 2018) 2015/09/01 01:48:46 This should live in the #expected rule.
Eric Willigers 2015/09/01 06:24:42 Done.
+
+var keyframes = [{ rotate: '0deg 0 1 0' }, { rotate: '450deg 1 0 0'}]
+
+var animation = target.animate(keyframes, {
+ duration: 1e10,
+ delay: -0.5e10
+});
alancutter (OOO until 2018) 2015/09/01 01:48:46 Pause the animation and set currentTime instead. N
Eric Willigers 2015/09/01 06:24:42 Done.
+
+</script>

Powered by Google App Engine
This is Rietveld 408576698