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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/interpolation/line-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 line-height: 30px; 5 line-height: 30px;
6 } 6 }
7 .target { 7 .target {
8 display: inline-block; 8 display: inline-block;
9 font: 20px sans-serif; 9 font: 20px sans-serif;
10 line-height: 10px; 10 line-height: 10px;
11 } 11 }
12 .expected { 12 .expected {
13 color: green; 13 color: green;
14 margin-right: 30px; 14 margin-right: 30px;
15 } 15 }
16 </style> 16 </style>
17 <body> 17 <body>
18 <template id="target-template"> 18 <template id="target-template">
19 <p> 19 <p>
20 v<br />v 20 v<br />v
21 </p> 21 </p>
22 </template> 22 </template>
23 <script src="resources/interpolation-test.js"></script> 23 <script src="resources/interpolation-test.js"></script>
24 <script> 24 <script>
25 assertInterpolation({ 25 assertInterpolation({
26 property: 'line-height', 26 property: 'line-height',
27 from: '', 27 from: neutralKeyframe,
28 to: '20px', 28 to: '20px',
29 }, [ 29 }, [
30 {at: -1, is: '0px'}, 30 {at: -1, is: '0px'},
31 {at: -0.3, is: '7px'}, 31 {at: -0.3, is: '7px'},
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 ]);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 {at: 1.5, is: '0px'}, // line-height must not be less than 0. 185 {at: 1.5, is: '0px'}, // line-height must not be less than 0.
186 ]); 186 ]);
187 </script> 187 </script>
188 </body> 188 </body>
189 189
190 190
191 191
192 192
193 193
194 194
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698