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

Unified Diff: third_party/WebKit/LayoutTests/animations/composition/rotate-composition.html

Issue 2662203002: CSS: Rotate support for none and fixed responsive-test.js (Closed)
Patch Set: avoid expectation failure on Mac Created 3 years, 11 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: third_party/WebKit/LayoutTests/animations/composition/rotate-composition.html
diff --git a/third_party/WebKit/LayoutTests/animations/composition/rotate-composition.html b/third_party/WebKit/LayoutTests/animations/composition/rotate-composition.html
index 82dd457ece2623cba848f253f45fdc9360104320..ae01bc3f24e2465e341cafae407dbce4b291f5d5 100644
--- a/third_party/WebKit/LayoutTests/animations/composition/rotate-composition.html
+++ b/third_party/WebKit/LayoutTests/animations/composition/rotate-composition.html
@@ -99,4 +99,60 @@ assertComposition({
{at: 1, is: '90deg'},
{at: 2, is: '-6.12323e-17 -1 -4.71028e-16 90deg'},
]);
+
+assertComposition({
+ property: 'rotate',
+ underlying: 'none',
+ addFrom: 'none',
+ replaceTo: '0 1 0 100deg',
+}, [
+ {at: -1, is: '0 1 0 -100deg'},
+ {at: 0, is: '0deg'},
+ {at: 0.25, is: '-1.20172e-16 1 -3.60516e-16 25deg'},
+ {at: 0.75, is: '-1.51909e-17 1 -4.55726e-17 75deg'},
+ {at: 1, is: '0 1 0 100deg'},
+ {at: 2, is: '0 1 0 200deg'},
+]);
+
+assertComposition({
+ property: 'rotate',
+ underlying: 'none',
+ addFrom: '2 4 6 270deg',
+ replaceTo: 'none',
+}, [
+ {at: -1, is: '2 4 6 540deg'},
+ {at: 0, is: '2 4 6 270deg'},
+ {at: 0.25, is: '2 4 6 202.5deg'},
+ {at: 0.75, is: '2 4 6 67.5deg'},
+ {at: 1, is: '0deg'},
+ {at: 2, is: '2 4 6 -270deg'},
+]);
+
+assertComposition({
+ property: 'rotate',
+ underlying: '1 2 3 90deg',
+ addFrom: 'none',
+ replaceTo: '0 1 0 100deg',
+}, [
+ {at: -1, is: '0.31 -0.22 0.92 131.66deg'},
+ {at: 0, is: '1 2 3 90deg'},
+ {at: 0.25, is: '0.21 0.73 0.64 86.72deg'},
+ {at: 0.75, is: '0.07 0.97 0.21 92.05deg'},
+ {at: 1, is: '0 1 0 100deg'},
+ {at: 2, is: '-0.2 0.79 -0.59 151.11deg'},
+]);
+
+assertComposition({
+ property: 'rotate',
+ underlying: '1 2 3 90deg',
+ addFrom: '2 4 6 270deg',
+ replaceTo: 'none',
+}, [
+ {at: -1, is: '1 2 3 720deg'},
+ {at: 0, is: '1 2 3 360deg'},
+ {at: 0.25, is: '1 2 3 270deg'},
+ {at: 0.75, is: '1 2 3 90deg'},
+ {at: 1, is: '0deg'},
+ {at: 2, is: '1 2 3 -360deg'},
+]);
</script>

Powered by Google App Engine
This is Rietveld 408576698