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

Side by Side Diff: LayoutTests/animations/interpolation/border-width-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-width: 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 border: 2px solid orange; 12 border: 2px solid orange;
10 margin: 18px; 13 margin: 18px;
14 border-width: 10px;
11 } 15 }
12 .expected { 16 .expected {
13 background-color: green; 17 background-color: green;
14 } 18 }
15 </style> 19 </style>
16 <body> 20 <body>
17 <script src="resources/interpolation-test.js"></script> 21 <script src="resources/interpolation-test.js"></script>
18 <script> 22 <script>
19 assertInterpolation({ 23 assertInterpolation({
20 property: 'border-width', 24 property: 'border-width',
25 from: '',
26 to: '20px',
27 }, [
28 {at: -0.3, is: '7px'},
29 {at: 0, is: '10px'},
30 {at: 0.3, is: '13px'},
31 {at: 0.6, is: '16px'},
32 {at: 1, is: '20px'},
33 {at: 1.5, is: '25px'},
34 ]);
35
36 assertInterpolation({
37 property: 'border-width',
38 from: 'initial',
39 to: '20px',
40 }, [
41 {at: -0.3, is: '0px'},
42 {at: 0, is: '3px'},
43 {at: 0.3, is: '8px'},
44 {at: 0.6, is: '13px'},
45 {at: 1, is: '20px'},
46 {at: 1.5, is: '29px'},
47 ]);
48
49 assertInterpolation({
50 property: 'border-width',
51 from: 'inherit',
52 to: '20px',
53 }, [
54 {at: -0.3, is: '0px'},
55 {at: 0, is: '0px'},
56 {at: 0.3, is: '6px'},
57 {at: 0.6, is: '12px'},
58 {at: 1, is: '20px'},
59 {at: 1.5, is: '30px'},
60 ]);
61
62 assertInterpolation({
63 property: 'border-width',
64 from: 'unset',
65 to: '20px',
66 }, [
67 {at: -0.3, is: '0px'},
68 {at: 0, is: '3px'},
69 {at: 0.3, is: '8px'},
70 {at: 0.6, is: '13px'},
71 {at: 1, is: '20px'},
72 {at: 1.5, is: '29px'},
73 ]);
74
75 assertInterpolation({
76 property: 'border-width',
21 from: '0px', 77 from: '0px',
22 to: '10px' 78 to: '10px'
23 }, [ 79 }, [
24 {at: -0.3, is: '0px'}, // CSS border-width can't be negative. 80 {at: -0.3, is: '0px'}, // CSS border-width can't be negative.
25 {at: 0, is: '0px'}, 81 {at: 0, is: '0px'},
26 {at: 0.3, is: '3px'}, 82 {at: 0.3, is: '3px'},
27 {at: 0.6, is: '6px'}, 83 {at: 0.6, is: '6px'},
28 {at: 1, is: '10px'}, 84 {at: 1, is: '10px'},
29 {at: 1.5, is: '15px'} 85 {at: 1.5, is: '15px'}
30 ]); 86 ]);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 {at: -2, is: '35px'}, 135 {at: -2, is: '35px'},
80 {at: -0.3, is: '18px'}, 136 {at: -0.3, is: '18px'},
81 {at: 0, is: '15px'}, 137 {at: 0, is: '15px'},
82 {at: 0.3, is: '12px'}, 138 {at: 0.3, is: '12px'},
83 {at: 0.6, is: '9px'}, 139 {at: 0.6, is: '9px'},
84 {at: 1, is: '5px'}, 140 {at: 1, is: '5px'},
85 {at: 1.5, is: '0px'} 141 {at: 1.5, is: '0px'}
86 ]); 142 ]);
87 </script> 143 </script>
88 </body> 144 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698