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

Side by Side Diff: LayoutTests/animations/interpolation/outline-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 outline: solid transparent;
6 outline-width: 30px;
7 }
4 .target { 8 .target {
5 width: 50px; 9 width: 50px;
6 height: 50px; 10 height: 50px;
7 background-color: black; 11 background-color: black;
8 display: inline-block; 12 display: inline-block;
9 outline: 2px solid orange;
10 margin: 18px; 13 margin: 18px;
14 outline: solid orange;
15 outline-width: 10px;
16 opacity: 0.5;
11 } 17 }
12 .expected { 18 .expected {
13 background-color: green; 19 background-color: green;
14 } 20 }
15 </style> 21 </style>
16 <body> 22 <body>
17 <script src="resources/interpolation-test.js"></script> 23 <script src="resources/interpolation-test.js"></script>
18 <script> 24 <script>
19 assertInterpolation({ 25 assertInterpolation({
20 property: 'outline-width', 26 property: 'outline-width',
27 from: '',
28 to: '20px',
29 }, [
30 {at: -0.3, is: '7px'},
31 {at: 0, is: '10px'},
32 {at: 0.3, is: '13px'},
33 {at: 0.6, is: '16px'},
34 {at: 1, is: '20px'},
35 {at: 1.5, is: '25px'},
36 ]);
37
38 assertInterpolation({
39 property: 'outline-width',
40 from: 'initial',
41 to: '20px',
42 }, [
43 {at: -0.3, is: '0px'},
44 {at: 0, is: '3px'},
45 {at: 0.3, is: '8px'},
46 {at: 0.6, is: '13px'},
47 {at: 1, is: '20px'},
48 {at: 1.5, is: '29px'},
49 ]);
50
51 assertInterpolation({
52 property: 'outline-width',
53 from: 'inherit',
54 to: '20px',
55 }, [
56 {at: -0.3, is: '33px'},
57 {at: 0, is: '30px'},
58 {at: 0.3, is: '27px'},
59 {at: 0.6, is: '24px'},
60 {at: 1, is: '20px'},
61 {at: 1.5, is: '15px'},
62 ]);
63
64 assertInterpolation({
65 property: 'outline-width',
66 from: 'unset',
67 to: '20px',
68 }, [
69 {at: -0.3, is: '0px'},
70 {at: 0, is: '3px'},
71 {at: 0.3, is: '8px'},
72 {at: 0.6, is: '13px'},
73 {at: 1, is: '20px'},
74 {at: 1.5, is: '29px'},
75 ]);
76
77 assertInterpolation({
78 property: 'outline-width',
21 from: '0px', 79 from: '0px',
22 to: '10px' 80 to: '10px',
23 }, [ 81 }, [
24 {at: -0.3, is: '0px'}, // CSS outline-width can't be negative. 82 {at: -0.3, is: '0px'}, // CSS outline-width can't be negative.
25 {at: 0, is: '0px'}, 83 {at: 0, is: '0px'},
26 {at: 0.3, is: '3px'}, 84 {at: 0.3, is: '3px'},
27 {at: 0.6, is: '6px'}, 85 {at: 0.6, is: '6px'},
28 {at: 1, is: '10px'}, 86 {at: 1, is: '10px'},
29 {at: 1.5, is: '15px'} 87 {at: 1.5, is: '15px'}
30 ]); 88 ]);
89
31 assertInterpolation({ 90 assertInterpolation({
32 property: 'outline-width', 91 property: 'outline-width',
33 from: 'thick', 92 from: 'thick',
34 to: '15px' 93 to: '15px',
35 }, [ 94 }, [
36 {at: -2, is: '0px'}, // CSS outline-width can't be negative. 95 {at: -2, is: '0px'}, // CSS outline-width can't be negative.
37 {at: -0.3, is: '2px'}, 96 {at: -0.3, is: '2px'},
38 {at: 0, is: '5px'}, 97 {at: 0, is: '5px'},
39 {at: 0.3, is: '8px'}, 98 {at: 0.3, is: '8px'},
40 {at: 0.6, is: '11px'}, 99 {at: 0.6, is: '11px'},
41 {at: 1, is: '15px'}, 100 {at: 1, is: '15px'},
42 {at: 1.5, is: '20px'} 101 {at: 1.5, is: '20px'}
43 ]); 102 ]);
44 </script> 103 </script>
45 </body> 104 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698