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

Side by Side Diff: LayoutTests/animations/interpolation/border-image-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-image-width: 100px;
6 }
4 .target { 7 .target {
5 width: 80px; 8 width: 80px;
6 height: 80px; 9 height: 80px;
7 background-color: black; 10 background-color: black;
8 display: inline-block; 11 display: inline-block;
9 border: 10px; 12 border: 10px;
10 border-image-source: linear-gradient(45deg, red, blue, green); 13 border-image-source: linear-gradient(45deg, red, blue, green);
14 border-image-width: 10px;
11 } 15 }
12 .expected { 16 .expected {
13 background-color: green; 17 background-color: green;
14 margin-right: 2px; 18 margin-right: 2px;
15 } 19 }
16 </style> 20 </style>
17 <body> 21 <body>
18 <script src="resources/interpolation-test.js"></script> 22 <script src="resources/interpolation-test.js"></script>
19 <script> 23 <script>
20 assertInterpolation({ 24 assertInterpolation({
21 property: 'border-image-width', 25 property: 'border-image-width',
26 from: '',
27 to: '20px',
28 }, [
29 {at: -0.3, is: '7px'},
30 {at: 0, is: '10px'},
31 {at: 0.3, is: '13px'},
32 {at: 0.6, is: '16px'},
33 {at: 1, is: '20px'},
34 {at: 1.5, is: '25px'},
35 {at: 5, is: '60px'},
36 {at: 10, is: '110px'},
37 ]);
38 assertInterpolation({
39 property: 'border-image-width',
40 from: 'initial',
41 to: '20px',
42 }, [
43 {at: -0.3, is: '1'},
44 {at: 0, is: '1'},
45 {at: 0.3, is: '1'},
46 {at: 0.6, is: '20px'},
47 {at: 1, is: '20px'},
48 {at: 1.5, is: '20px'},
49 {at: 5, is: '20px'},
50 {at: 10, is: '20px'},
51 ]);
52 assertInterpolation({
53 property: 'border-image-width',
54 from: 'inherit',
55 to: '20px',
56 }, [
57 {at: -0.3, is: '124px'},
58 {at: 0, is: '100px'},
59 {at: 0.3, is: '76px'},
60 {at: 0.6, is: '52px'},
61 {at: 1, is: '20px'},
62 {at: 1.5, is: '0px'},
63 {at: 5, is: '0px'},
64 {at: 10, is: '0px'},
65 ]);
66 assertInterpolation({
67 property: 'border-image-width',
68 from: 'unset',
69 to: '20px',
70 }, [
71 {at: -0.3, is: '1'},
72 {at: 0, is: '1'},
73 {at: 0.3, is: '1'},
74 {at: 0.6, is: '20px'},
75 {at: 1, is: '20px'},
76 {at: 1.5, is: '20px'},
77 {at: 5, is: '20px'},
78 {at: 10, is: '20px'},
79 ]);
80 assertInterpolation({
81 property: 'border-image-width',
22 from: '0px', 82 from: '0px',
23 to: '20px' 83 to: '20px'
24 }, [ 84 }, [
25 {at: -0.3, is: '0px'}, // CSS border-image-width can't be negative. 85 {at: -0.3, is: '0px'}, // CSS border-image-width can't be negative.
26 {at: 0, is: '0px'}, 86 {at: 0, is: '0px'},
27 {at: 0.3, is: '6px'}, 87 {at: 0.3, is: '6px'},
28 {at: 0.6, is: '12px'}, 88 {at: 0.6, is: '12px'},
29 {at: 1, is: '20px'}, 89 {at: 1, is: '20px'},
30 {at: 1.5, is: '30px'}, 90 {at: 1.5, is: '30px'},
31 {at: 5, is: '100px'}, 91 {at: 5, is: '100px'},
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 }, [ 203 }, [
144 {at: -0.3, is: '10'}, 204 {at: -0.3, is: '10'},
145 {at: 0, is: '10'}, 205 {at: 0, is: '10'},
146 {at: 0.3, is: '10'}, 206 {at: 0.3, is: '10'},
147 {at: 0.6, is: '20%'}, 207 {at: 0.6, is: '20%'},
148 {at: 1, is: '20%'}, 208 {at: 1, is: '20%'},
149 {at: 1.5, is: '20%'}, 209 {at: 1.5, is: '20%'},
150 ]); 210 ]);
151 </script> 211 </script>
152 </body> 212 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698