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

Side by Side Diff: LayoutTests/animations/interpolation/position-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 .container { 4 .parent {
5 position: relative; 5 position: relative;
6 display: inline-block; 6 display: inline-block;
7 height: 10px; 7 height: 10px;
8 margin: 0px; 8 margin: 0px;
9 } 9 }
10 .target { 10 .target {
11 width: 10px; 11 width: 10px;
12 height: 10px; 12 height: 10px;
13 background-color: black; 13 background-color: black;
14 left: 10px; 14 left: 10px;
15 position: 10px;
15 } 16 }
16 .expected { 17 .expected {
17 background-color: green; 18 background-color: green;
18 } 19 }
19 </style> 20 </style>
20 <template id="target-template"> 21 <template id="target-template">
21 <div class="container"> 22 <div class="parent">
22 <div class="target"></div> 23 <div class="target"></div>
23 </div> 24 </div>
24 </template> 25 </template>
25 <body> 26 <body>
26 <script src="resources/interpolation-test.js"></script> 27 <script src="resources/interpolation-test.js"></script>
27 <script> 28 <script>
28 assertNoInterpolation({ 29 assertNoInterpolation({
29 property: 'position', 30 property: 'position',
30 from: 'absolute', 31 from: 'absolute',
31 to: 'static', 32 to: 'static',
32 }); 33 });
34
33 assertInterpolation({ 35 assertInterpolation({
34 property: 'position', 36 property: 'position',
35 from: '', 37 from: '',
36 to: 'absolute', 38 to: 'absolute',
37 method: 'CSS Animations', 39 method: 'CSS Animations',
38 }, [ 40 }, [
39 {at: -1, is: 'static'}, 41 {at: -1, is: 'static'},
40 {at: 0, is: 'static'}, 42 {at: 0, is: 'static'},
41 {at: 0.25, is: 'static'}, 43 {at: 0.25, is: 'static'},
42 {at: 0.5, is: 'absolute'}, 44 {at: 0.5, is: 'absolute'},
43 {at: 0.75, is: 'absolute'}, 45 {at: 0.75, is: 'absolute'},
44 {at: 1, is: 'absolute'}, 46 {at: 1, is: 'absolute'},
45 {at: 2, is: 'absolute'}, 47 {at: 2, is: 'absolute'},
46 ]); 48 ]);
47 </script> 49 </script>
48 </body> 50 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698