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

Unified Diff: LayoutTests/animations/interpolation/motion-rotation-interpolation.html

Issue 1265873002: Add test coverage for interpolations using CSS wide keywords and neutral keyframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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/animations/interpolation/motion-rotation-interpolation.html
diff --git a/LayoutTests/animations/interpolation/motion-rotation-interpolation.html b/LayoutTests/animations/interpolation/motion-rotation-interpolation.html
index 1fa578d74047f3795ab65b0cff5aa17716051007..aafe41f0a4ffbc0d34742fc5367dbacc2bceea48 100644
--- a/LayoutTests/animations/interpolation/motion-rotation-interpolation.html
+++ b/LayoutTests/animations/interpolation/motion-rotation-interpolation.html
@@ -1,12 +1,16 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
+.parent {
+ motion-rotation: 30deg;
+}
.target {
width: 80px;
height: 80px;
display: inline-block;
background-color: black;
margin-right: 5px;
+ motion-rotation: 10deg;
}
.expected {
background-color: green;
@@ -18,6 +22,44 @@
<script>
assertInterpolation({
property: 'motion-rotation',
+ from: '',
+ to: '20deg',
+}, [
+ {at: -0.3, is: '7deg'},
+ {at: 0, is: '10deg'},
+ {at: 0.3, is: '13deg'},
+ {at: 0.6, is: '16deg'},
+ {at: 1, is: '20deg'},
+ {at: 1.5, is: '25deg'},
+]);
+
+assertNoInterpolation({
+ property: 'motion-rotation',
+ from: 'initial',
+ to: '20deg',
+});
+
+assertInterpolation({
+ property: 'motion-rotation',
+ from: 'inherit',
+ to: '20deg',
+}, [
+ {at: -0.3, is: '33deg'},
+ {at: 0, is: '30deg'},
+ {at: 0.3, is: '27deg'},
+ {at: 0.6, is: '24deg'},
+ {at: 1, is: '20deg'},
+ {at: 1.5, is: '15deg'},
+]);
+
+assertNoInterpolation({
+ property: 'motion-rotation',
+ from: 'unset',
+ to: '20deg',
+});
+
+assertInterpolation({
+ property: 'motion-rotation',
from: '10deg',
to: '50deg'
}, [

Powered by Google App Engine
This is Rietveld 408576698