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

Side by Side Diff: LayoutTests/animations/interpolation/position-interpolation.html

Issue 1217983003: Allow animation of non-interpolable properties in CSS Animations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 5 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 .container {
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 } 15 }
16 .expected { 16 .expected {
17 background-color: green; 17 background-color: green;
18 } 18 }
19 </style> 19 </style>
20 <template id="target-template"> 20 <template id="target-template">
21 <div class="container"> 21 <div class="container">
22 <div class="target"></div> 22 <div class="target"></div>
23 </div> 23 </div>
24 </template> 24 </template>
25 <body> 25 <body>
26 <script src="resources/interpolation-test.js"></script> 26 <script src="resources/interpolation-test.js"></script>
27 <script> 27 <script>
28 assertNoInterpolation({ 28 assertNoInterpolation({
29 method: 'Web Animations',
30 property: 'position', 29 property: 'position',
31 from: 'absolute', 30 from: 'absolute',
32 to: 'static' 31 to: 'static',
33 }); 32 });
33 assertInterpolation({
34 property: 'position',
35 from: '',
36 to: 'absolute',
37 method: 'CSS Animations',
38 }, [
39 {at: -1, is: 'static'},
40 {at: 0, is: 'static'},
41 {at: 0.25, is: 'static'},
42 {at: 0.5, is: 'absolute'},
43 {at: 0.75, is: 'absolute'},
44 {at: 1, is: 'absolute'},
45 {at: 2, is: 'absolute'},
46 ]);
34 </script> 47 </script>
35 </body> 48 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698