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

Side by Side Diff: LayoutTests/animations/interpolation/text-indent-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 .parent {
5 text-indent: 70px;
6 }
4 .target { 7 .target {
5 font: 50px sans-serif; 8 font: 10px sans-serif;
9 text-indent: 10px;
10 margin-left: 20px;
6 } 11 }
7 .expected { 12 .expected {
8 color: green; 13 color: green;
9 } 14 }
10 </style> 15 </style>
11 <body> 16 <body>
12 <template id="target-template">The helipad</template>
13 <script src="resources/interpolation-test.js"></script> 17 <script src="resources/interpolation-test.js"></script>
18 <template id="target-template">T</template>
14 <script> 19 <script>
15 assertInterpolation({ 20 assertInterpolation({
16 property: 'text-indent', 21 property: 'text-indent',
22 from: '',
23 to: '40px',
24 }, [
25 {at: -0.3, is: '1px'},
26 {at: 0, is: '10px'},
27 {at: 0.3, is: '19px'},
28 {at: 0.6, is: '28px'},
29 {at: 1, is: '40px'},
30 {at: 1.5, is: '55px'},
31 ]);
32
33 assertInterpolation({
34 property: 'text-indent',
35 from: 'initial',
36 to: '20px',
37 }, [
38 {at: -0.3, is: '-6px'},
39 {at: 0, is: '0px'},
40 {at: 0.3, is: '6px'},
41 {at: 0.6, is: '12px'},
42 {at: 1, is: '20px'},
43 {at: 1.5, is: '30px'},
44 ]);
45
46 assertInterpolation({
47 property: 'text-indent',
48 from: 'inherit',
49 to: '20px',
50 }, [
51 {at: -0.3, is: '85px'},
52 {at: 0, is: '70px'},
53 {at: 0.3, is: '55px'},
54 {at: 0.6, is: '40px'},
55 {at: 1, is: '20px'},
56 {at: 1.5, is: '-5px'},
57 ]);
58
59 assertInterpolation({
60 property: 'text-indent',
61 from: 'unset',
62 to: '20px',
63 }, [
64 {at: -0.3, is: '85px'},
65 {at: 0, is: '70px'},
66 {at: 0.3, is: '55px'},
67 {at: 0.6, is: '40px'},
68 {at: 1, is: '20px'},
69 {at: 1.5, is: '-5px'},
70 ]);
71
72 assertInterpolation({
73 property: 'text-indent',
17 from: '0px', 74 from: '0px',
18 to: '50px' 75 to: '50px'
19 }, [ 76 }, [
20 {at: -0.3, is: '-15px'}, 77 {at: -0.3, is: '-15px'},
21 {at: 0, is: '0'}, 78 {at: 0, is: '0'},
22 {at: 0.3, is: '15px'}, 79 {at: 0.3, is: '15px'},
23 {at: 0.6, is: '30px'}, 80 {at: 0.6, is: '30px'},
24 {at: 1, is: '50px'}, 81 {at: 1, is: '50px'},
25 {at: 1.5, is: '75px'}, 82 {at: 1.5, is: '75px'},
26 ]); 83 ]);
27 </script> 84 </script>
28 </body> 85 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698