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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/max-height-interpolation.html

Issue 1881333002: Use neutralKeyframe sentinal instead of '' for interpolation-test.js tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix composition test code Created 4 years, 8 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
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 max-height: 30px; 5 max-height: 30px;
6 } 6 }
7 .target { 7 .target {
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 background-color: black; 10 background-color: black;
11 display: inline-block; 11 display: inline-block;
12 max-height: 10px; 12 max-height: 10px;
13 } 13 }
14 .expected { 14 .expected {
15 background-color: green; 15 background-color: green;
16 } 16 }
17 </style> 17 </style>
18 <body> 18 <body>
19 <template id="target-template"> 19 <template id="target-template">
20 <div> 20 <div>
21 <div class="target"></div> 21 <div class="target"></div>
22 </div> 22 </div>
23 </template> 23 </template>
24 <script src="resources/interpolation-test.js"></script> 24 <script src="resources/interpolation-test.js"></script>
25 <script> 25 <script>
26 assertInterpolation({ 26 assertInterpolation({
27 property: 'max-height', 27 property: 'max-height',
28 from: '', 28 from: neutralKeyframe,
29 to: '20px', 29 to: '20px',
30 }, [ 30 }, [
31 {at: -0.5, is: '5px'}, 31 {at: -0.5, is: '5px'},
32 {at: 0, is: '10px'}, 32 {at: 0, is: '10px'},
33 {at: 0.3, is: '13px'}, 33 {at: 0.3, is: '13px'},
34 {at: 0.6, is: '16px'}, 34 {at: 0.6, is: '16px'},
35 {at: 1, is: '20px'}, 35 {at: 1, is: '20px'},
36 {at: 1.5, is: '25px'}, 36 {at: 1.5, is: '25px'},
37 ]); 37 ]);
38 38
(...skipping 29 matching lines...) Expand all
68 }, [ 68 }, [
69 {at: -0.5, is: '0'}, // CSS max-height can't be negative. 69 {at: -0.5, is: '0'}, // CSS max-height can't be negative.
70 {at: 0, is: '0'}, 70 {at: 0, is: '0'},
71 {at: 0.3, is: '30px'}, 71 {at: 0.3, is: '30px'},
72 {at: 0.6, is: '60px'}, 72 {at: 0.6, is: '60px'},
73 {at: 1, is: '100px'}, 73 {at: 1, is: '100px'},
74 {at: 1.5, is: '150px'} 74 {at: 1.5, is: '150px'}
75 ]); 75 ]);
76 </script> 76 </script>
77 </body> 77 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698