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

Unified Diff: LayoutTests/animations/interpolation/transform-interpolation.html

Issue 1211353003: Fix incorrect blink behavior on rotate (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/platform/transforms/RotateTransformOperation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/interpolation/transform-interpolation.html
diff --git a/LayoutTests/animations/interpolation/transform-interpolation.html b/LayoutTests/animations/interpolation/transform-interpolation.html
index ee524b15ff16e04b5a6a44097d5daa4418d5c616..0a82076df4041c127634db24e8d9b9a09e659b29 100644
--- a/LayoutTests/animations/interpolation/transform-interpolation.html
+++ b/LayoutTests/animations/interpolation/transform-interpolation.html
@@ -131,6 +131,42 @@ assertInterpolation({
]);
assertInterpolation({
property: 'transform',
+ from: 'rotate3d(7, 8, 9, 0deg)',
+ to: 'rotate3d(7, 8, 9, 450deg)'
+}, [
+ {at: -1, is: 'rotate3d(7, 8, 9, -450deg)'},
+ {at: 0, is: 'rotate3d(7, 8, 9, 0deg)'},
+ {at: 0.25, is: 'rotate3d(7, 8, 9, 112.5deg)'},
+ {at: 0.75, is: 'rotate3d(7, 8, 9, 337.5deg)'},
+ {at: 1, is: 'rotate3d(7, 8, 9, 450deg)'},
+ {at: 2, is: 'rotate3d(7, 8, 9, 900deg)'},
+]);
+assertInterpolation({
+ property: 'transform',
+ from: 'rotate3d(0, 1, 0, 0deg)',
+ to: 'rotate3d(0, 1, 0, 450deg)'
+}, [
+ {at: -1, is: 'rotate3d(0, 1, 0, -450deg)'},
+ {at: 0, is: 'rotate3d(0, 1, 0, 0deg)'},
+ {at: 0.25, is: 'rotate3d(0, 1, 0, 112.5deg)'},
+ {at: 0.75, is: 'rotate3d(0, 1, 0, 337.5deg)'},
+ {at: 1, is: 'rotate3d(0, 1, 0, 450deg)'},
+ {at: 2, is: 'rotate3d(0, 1, 0, 900deg)'},
+]);
+assertInterpolation({
+ property: 'transform',
+ from: 'rotate3d(1, 1, 0, 90deg)',
+ to: 'rotate3d(0, 1, 1, 180deg)'
+}, [
+ {at: -1, is: 'rotate3d(0.41, -0.41, -0.82, 120deg)'},
+ {at: 0, is: 'rotate3d(1, 1, 0, 90deg)'},
+ {at: 0.25, is: 'rotate3d(0.8, 0.27, -0.53, 82.76deg)'},
+ {at: 0.75, is: 'rotate3d(0.265153, -0.536206, -0.801359, 138.89deg)'},
+ {at: 1, is: 'rotate3d(0, 1, 1, 180deg)'},
+ {at: 2, is: 'rotate3d(0.71, 0, -0.71, 90deg)'},
+]);
+assertInterpolation({
+ property: 'transform',
from: 'none',
to: 'rotate(90deg)'
}, [
« no previous file with comments | « no previous file | Source/platform/transforms/RotateTransformOperation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698