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

Side by Side Diff: LayoutTests/animations/interpolation/scale-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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent { 4 .parent {
5 scale: 0.5 1 2 5 scale: 0.5 1 2
6 } 6 }
7 .target { 7 .target {
8 width: 100px; 8 width: 10px;
9 height: 100px; 9 height: 10px;
10 background-color: black; 10 background-color: black;
11 scale: 1.1;
11 } 12 }
12 .expected { 13 .expected {
13 background-color: green; 14 background-color: green;
14 } 15 }
15 </style> 16 </style>
16 <template id="target-template"> 17 <template id="target-template">
17 <div class="parent"> 18 <div class="parent">
18 <div class="target"></div> 19 <div class="target"></div>
19 </div> 20 </div>
20 </template> 21 </template>
21 <script src="resources/interpolation-test.js"></script> 22 <script src="resources/interpolation-test.js"></script>
22 <script> 23 <script>
23 assertInterpolation({ 24 assertInterpolation({
24 property: 'scale', 25 property: 'scale',
26 from: '',
27 to: '1.5',
28 }, [
29 {at: -1, is: '0.7 0.7'},
30 {at: 0, is: '1.1 1.1'},
31 {at: 0.25, is: '1.2 1.2'},
32 {at: 0.75, is: '1.4 1.4'},
33 {at: 1, is: '1.5 1.5'},
34 {at: 2, is: '1.9 1.9'},
35 ]);
36
37 assertInterpolation({
38 property: 'scale',
39 from: 'unset',
40 to: '1.5',
41 }, [
42 {at: -1, is: '0.5 0.5'},
43 {at: 0, is: '1'},
44 {at: 0.25, is: '1.125 1.125'},
45 {at: 0.75, is: '1.375 1.375'},
46 {at: 1, is: '1.5 1.5'},
47 {at: 2, is: '2 2'},
48 ]);
49
50 assertInterpolation({
51 property: 'scale',
25 from: '-10', 52 from: '-10',
26 to: '10', 53 to: '10',
27 }, [ 54 }, [
28 {at: -1, is: '-30'}, 55 {at: -1, is: '-30'},
29 {at: 0, is: '-10'}, 56 {at: 0, is: '-10'},
30 {at: 0.25, is: '-5'}, 57 {at: 0.25, is: '-5'},
31 {at: 0.75, is: '5'}, 58 {at: 0.75, is: '5'},
32 {at: 1, is: '10'}, 59 {at: 1, is: '10'},
33 {at: 2, is: '30'}, 60 {at: 2, is: '30'},
34 ]); 61 ]);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 to: 'initial', 183 to: 'initial',
157 }, [ 184 }, [
158 {at: -1, is: '0 1 3'}, 185 {at: -1, is: '0 1 3'},
159 {at: 0, is: '0.5 1 2'}, 186 {at: 0, is: '0.5 1 2'},
160 {at: 0.25, is: '0.625 1 1.75'}, 187 {at: 0.25, is: '0.625 1 1.75'},
161 {at: 0.75, is: '0.875 1 1.25'}, 188 {at: 0.75, is: '0.875 1 1.25'},
162 {at: 1, is: '1 1 1'}, 189 {at: 1, is: '1 1 1'},
163 {at: 2, is: '1.5 1 0'}, 190 {at: 2, is: '1.5 1 0'},
164 ]); 191 ]);
165 </script> 192 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698