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/border-spacing-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 border-spacing: 30px;
6 }
4 .target { 7 .target {
5 width: 50px; 8 width: 50px;
6 height: 50px; 9 height: 50px;
7 background-color: black; 10 background-color: black;
8 display: inline-block; 11 display: inline-block;
9 margin: 18px; 12 margin: 18px;
10 border-collapse: separate; 13 border-collapse: separate;
14 border-spacing: 10px;
11 } 15 }
12 .target td { 16 .target td {
13 background-color: white; 17 background-color: white;
14 border: 1px solid orange; 18 border: 1px solid orange;
15 width: 10px; 19 width: 10px;
16 height: 10px; 20 height: 10px;
17 } 21 }
18 .expected { 22 .expected {
19 background-color: green; 23 background-color: green;
20 } 24 }
21 </style> 25 </style>
22 <body> 26 <body>
23 <template id="target-template"> 27 <template id="target-template">
24 <table> 28 <table>
25 <tbody> 29 <tbody>
26 <tr> 30 <tr>
27 <td></td> 31 <td></td>
28 <td></td> 32 <td></td>
29 </tr> 33 </tr>
30 </tbody> 34 </tbody>
31 </table> 35 </table>
32 </template> 36 </template>
33 <script src="resources/interpolation-test.js"></script> 37 <script src="resources/interpolation-test.js"></script>
34 <script> 38 <script>
35 assertInterpolation({ 39 assertInterpolation({
36 property: 'border-spacing', 40 property: 'border-spacing',
41 from: '',
42 to: '20px',
43 }, [
44 {at: -0.3, is: '7px 7px'},
45 {at: 0, is: '10px 10px'},
46 {at: 0.3, is: '13px 13px'},
47 {at: 0.6, is: '16px 16px'},
48 {at: 1, is: '20px 20px'},
49 {at: 1.5, is: '25px 25px'},
50 ]);
51 assertInterpolation({
52 property: 'border-spacing',
53 from: 'initial',
54 to: '20px',
55 }, [
56 {at: -0.3, is: '0px 0px'},
57 {at: 0, is: '0px 0px'},
58 {at: 0.3, is: '6px 6px'},
59 {at: 0.6, is: '12px 12px'},
60 {at: 1, is: '20px 20px'},
61 {at: 1.5, is: '30px 30px'},
62 ]);
63 assertInterpolation({
64 property: 'border-spacing',
65 from: 'inherit',
66 to: '20px',
67 }, [
68 {at: -0.3, is: '33px 33px'},
69 {at: 0, is: '30px 30px'},
70 {at: 0.3, is: '27px 27px'},
71 {at: 0.6, is: '24px 24px'},
72 {at: 1, is: '20px 20px'},
73 {at: 1.5, is: '15px 15px'},
74 ]);
75 assertInterpolation({
76 property: 'border-spacing',
77 from: 'unset',
78 to: '20px',
79 }, [
80 {at: -0.3, is: '33px 33px'},
81 {at: 0, is: '30px 30px'},
82 {at: 0.3, is: '27px 27px'},
83 {at: 0.6, is: '24px 24px'},
84 {at: 1, is: '20px 20px'},
85 {at: 1.5, is: '15px 15px'},
86 ]);
87 assertInterpolation({
88 property: 'border-spacing',
37 from: '0px', 89 from: '0px',
38 to: '10px' 90 to: '10px'
39 }, [ 91 }, [
40 {at: -0.3, is: '0px 0px'}, // Can't be negative. 92 {at: -0.3, is: '0px 0px'}, // Can't be negative.
41 {at: 0, is: '0px 0px'}, 93 {at: 0, is: '0px 0px'},
42 {at: 0.3, is: '3px 3px'}, 94 {at: 0.3, is: '3px 3px'},
43 {at: 0.6, is: '6px 6px'}, 95 {at: 0.6, is: '6px 6px'},
44 {at: 1, is: '10px 10px'}, 96 {at: 1, is: '10px 10px'},
45 {at: 1.5, is: '15px 15px'} 97 {at: 1.5, is: '15px 15px'}
46 ]); 98 ]);
(...skipping 16 matching lines...) Expand all
63 }, [ 115 }, [
64 {at: -0.3, is: '0px'}, // Can't be negative. 116 {at: -0.3, is: '0px'}, // Can't be negative.
65 {at: 0, is: '0px'}, 117 {at: 0, is: '0px'},
66 {at: 0.3, is: '3px'}, 118 {at: 0.3, is: '3px'},
67 {at: 0.6, is: '6px'}, 119 {at: 0.6, is: '6px'},
68 {at: 1, is: '10px'}, 120 {at: 1, is: '10px'},
69 {at: 1.5, is: '15px'} 121 {at: 1.5, is: '15px'}
70 ]); 122 ]);
71 </script> 123 </script>
72 </body> 124 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698