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

Side by Side Diff: LayoutTests/animations/interpolation/webkit-column-rule-color-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 -webkit-column-rule-color: blue;
6 }
4 .target { 7 .target {
5 width: 300px; 8 width: 20px;
6 height: 80px; 9 height: 100px;
7 background-color: black; 10 background-color: black;
8 display: inline-block; 11 display: inline-block;
9 margin: 18px;
10 color: orange; 12 color: orange;
11 overflow: hidden; 13 overflow: hidden;
12 -webkit-column-rule-style: solid; 14 -webkit-column-rule-style: solid;
15 -webkit-column-rule-width: 10px;
13 -webkit-column-count: 2; 16 -webkit-column-count: 2;
17 -webkit-column-rule-color: yellow;
14 } 18 }
15 .expected { 19 .expected {
16 background-color: green; 20 background-color: green;
21 margin-right: 10px;
17 } 22 }
18 </style> 23 </style>
19 <body> 24 <body>
20 <template id="target-template"> 25 <template id="target-template">
21 <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div> 26 <div>text text text text text text text text text text text text</div>
22 </template> 27 </template>
23 <script src="resources/interpolation-test.js"></script> 28 <script src="resources/interpolation-test.js"></script>
24 <script> 29 <script>
25 assertInterpolation({ 30 assertInterpolation({
26 property: '-webkit-column-rule-color', 31 property: '-webkit-column-rule-color',
32 from: '',
33 to: 'lime',
34 }, [
35 {at: -5, is: 'rgb(255, 255, 0)'},
36 {at: -0.4, is: 'rgb(255, 255, 0)'},
37 {at: 0, is: 'rgb(255, 255, 0)'},
38 {at: 0.2, is: 'rgb(204, 255, 0)'},
39 {at: 0.6, is: 'rgb(102, 255, 0)'},
40 {at: 1, is: 'rgb(0, 255, 0)'},
41 {at: 1.5, is: 'rgb(0, 255, 0)'},
42 ]);
43
44 assertInterpolation({
45 property: '-webkit-column-rule-color',
46 from: 'initial',
47 to: 'lime',
48 }, [
49 {at: -5, is: 'rgb(255, 0, 0)'},
50 {at: -0.4, is: 'rgb(255, 129, 0)'},
51 {at: 0, is: 'rgb(255, 165, 0)'},
52 {at: 0.2, is: 'rgb(204, 183, 0)'},
53 {at: 0.6, is: 'rgb(102, 219, 0)'},
54 {at: 1, is: 'rgb(0, 255, 0)'},
55 {at: 1.5, is: 'rgb(0, 255, 0)'},
56 ]);
57
58 assertInterpolation({
59 property: '-webkit-column-rule-color',
60 from: 'inherit',
61 to: 'lime',
62 }, [
63 {at: -5, is: 'rgb(0, 0, 255)'},
64 {at: -0.4, is: 'rgb(0, 0, 255)'},
65 {at: 0, is: 'rgb(0, 0, 255)'},
66 {at: 0.2, is: 'rgb(0, 51, 204)'},
67 {at: 0.6, is: 'rgb(0, 153, 102)'},
68 {at: 1, is: 'rgb(0, 255, 0)'},
69 {at: 1.5, is: 'rgb(0, 255, 0)'},
70 ]);
71
72 assertInterpolation({
73 property: '-webkit-column-rule-color',
74 from: 'unset',
75 to: 'lime',
76 }, [
77 {at: -5, is: 'rgb(255, 0, 0)'},
78 {at: -0.4, is: 'rgb(255, 129, 0)'},
79 {at: 0, is: 'rgb(255, 165, 0)'},
80 {at: 0.2, is: 'rgb(204, 183, 0)'},
81 {at: 0.6, is: 'rgb(102, 219, 0)'},
82 {at: 1, is: 'rgb(0, 255, 0)'},
83 {at: 1.5, is: 'rgb(0, 255, 0)'},
84 ]);
85
86 assertInterpolation({
87 property: '-webkit-column-rule-color',
27 from: 'orange', 88 from: 'orange',
28 to: 'blue' 89 to: 'blue'
29 }, [ 90 }, [
30 {at: -5, is: '#ffff00'}, 91 {at: -5, is: '#ffff00'},
31 {at: -0.4, is: '#ffe700'}, 92 {at: -0.4, is: '#ffe700'},
32 {at: 0, is: 'orange'}, // ffa500 93 {at: 0, is: 'orange'}, // ffa500
33 {at: 0.2, is: '#cc8433'}, 94 {at: 0.2, is: '#cc8433'},
34 {at: 0.6, is: '#664299'}, 95 {at: 0.6, is: '#664299'},
35 {at: 1, is: 'blue'}, // 0000ff 96 {at: 1, is: 'blue'}, // 0000ff
36 {at: 1.5, is: 'blue'} 97 {at: 1.5, is: 'blue'}
37 ]); 98 ]);
38 </script> 99 </script>
39 </body> 100 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698