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

Side by Side Diff: LayoutTests/animations/interpolation/letter-spacing-interpolation.html

Issue 955863002: Support keywords in LengthStyleInterpolation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: transitions test with interpolated perspective Created 5 years, 9 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 .target { 4 .target {
5 display: inline-block; 5 display: inline-block;
6 font: 100px sans-serif; 6 font: 100px sans-serif;
7 } 7 }
8 .replica { 8 .replica {
9 color: green; 9 color: green;
10 margin-right: 30px; 10 margin-right: 30px;
11 } 11 }
12 </style> 12 </style>
13 <body> 13 <body>
14 <template id="target-template">TT</template> 14 <template id="target-template">TT</template>
15 <script src="resources/interpolation-test.js"></script> 15 <script src="resources/interpolation-test.js"></script>
16 <script> 16 <script>
17 assertInterpolation({ 17 assertInterpolation({
18 property: 'letter-spacing', 18 property: 'letter-spacing',
19 from: '-10px', 19 from: '-10px',
20 to: '10px' 20 to: '10px'
21 }, [ 21 }, [
22 {at: -0.3, is: '-16px'}, 22 {at: -0.3, is: '-16px'},
23 {at: 0, is: '-10px'}, 23 {at: 0, is: '-10px'},
24 {at: 0.3, is: '-4px'}, 24 {at: 0.3, is: '-4px'},
25 {at: 0.6, is: '2px'}, 25 {at: 0.6, is: '2px'},
26 {at: 1, is: '10px'}, 26 {at: 1, is: '10px'},
27 {at: 1.5, is: '20px'}, 27 {at: 1.5, is: '20px'},
28 ]); 28 ]);
29 assertInterpolation({
30 property: 'letter-spacing',
31 from: 'normal',
32 to: '10px'
33 }, [
34 {at: -0.3, is: '-3px'},
35 {at: 0, is: '0px'},
36 {at: 0.3, is: '3px'},
37 {at: 0.6, is: '6px'},
38 {at: 1, is: '10px'},
39 {at: 1.5, is: '15px'},
40 ]);
29 </script> 41 </script>
30 </body> 42 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698