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

Side by Side Diff: LayoutTests/animations/interpolation/webkit-column-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 -webkit-column-width: 90px;
6 }
4 .target { 7 .target {
5 -webkit-column-width: 20px;
6 column-width: 20px; 8 column-width: 20px;
7 width: 600px; 9 width: 600px;
8 -webkit-column-gap: 20px; 10 -webkit-column-gap: 20px;
9 column-gap: 20px; 11 column-gap: 20px;
12 -webkit-column-width: 10px;
10 } 13 }
11 .expected div { 14 .expected div {
12 opacity: 0.7; 15 opacity: 0.7;
13 } 16 }
14 .target div { 17 .target div {
15 height: 20px; 18 height: 20px;
16 background-color: green; 19 background-color: green;
17 } 20 }
18
19 .target div ~ div { 21 .target div ~ div {
20 background-color: black; 22 background-color: black;
21 } 23 }
22 </style> 24 </style>
23 <body> 25 <body>
24 <template id='target-template'> 26 <template id='target-template'>
25 <div></div><div></div> 27 <div class="parent">
28 <div class="target">
29 <div></div><div></div>
30 </div>
31 </div>
26 </template> 32 </template>
27 <script src='resources/interpolation-test.js'></script> 33 <script src='resources/interpolation-test.js'></script>
28 <script> 34 <script>
29 assertInterpolation({ 35 assertInterpolation({
30 property: '-webkit-column-width', 36 property: '-webkit-column-width',
37 from: '',
38 to: '40px',
39 }, [
40 {at: -0.3, is: '1px'},
41 {at: 0, is: '10px'},
42 {at: 0.3, is: '19px'},
43 {at: 0.6, is: '28px'},
44 {at: 1, is: '40px'},
45 {at: 1.5, is: '55px'},
46 ]);
47
48 assertNoInterpolation({
49 property: '-webkit-column-width',
50 from: 'initial',
51 to: '40px',
52 });
53
54 assertInterpolation({
55 property: '-webkit-column-width',
56 from: 'inherit',
57 to: '40px',
58 }, [
59 {at: -0.3, is: '105px'},
60 {at: 0, is: '90px'},
61 {at: 0.3, is: '75px'},
62 {at: 0.6, is: '60px'},
63 {at: 1, is: '40px'},
64 {at: 1.5, is: '15px'},
65 ]);
66
67 assertNoInterpolation({
68 property: '-webkit-column-width',
69 from: 'unset',
70 to: '40px',
71 });
72
73
74 assertInterpolation({
75 property: '-webkit-column-width',
31 from: '1px', 76 from: '1px',
32 to: '101px' 77 to: '101px'
33 }, [ 78 }, [
34 {at: -0.3, is: '0.000000119px'}, 79 {at: -0.3, is: '0.000000119px'},
35 {at: 0, is: '1px'}, 80 {at: 0, is: '1px'},
36 {at: 0.3, is: '31px'}, 81 {at: 0.3, is: '31px'},
37 {at: 0.6, is: '61px'}, 82 {at: 0.6, is: '61px'},
38 {at: 1, is: '101px'}, 83 {at: 1, is: '101px'},
39 {at: 1.5, is: '151px'} 84 {at: 1.5, is: '151px'}
40 ]); 85 ]);
41 86
42 assertNoInterpolation({ 87 assertNoInterpolation({
43 property: '-webkit-column-width', 88 property: '-webkit-column-width',
44 from: 'auto', 89 from: 'auto',
45 to: '100px' 90 to: '100px'
46 }); 91 });
47 </script> 92 </script>
48 </body> 93 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698