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

Side by Side Diff: LayoutTests/animations/interpolation/webkit-column-count-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-count: 1;
6 }
4 .target { 7 .target {
5 width: 300px; 8 width: 300px;
6 height: 80px; 9 height: 80px;
7 background-color: black; 10 background-color: black;
8 display: inline-block; 11 display: inline-block;
9 margin: 18px; 12 margin: 18px;
10 color: orange; 13 color: orange;
11 overflow: hidden; 14 overflow: hidden;
15 -webkit-column-count: 9;
12 } 16 }
13 .expected { 17 .expected {
14 background-color: green; 18 background-color: green;
15 } 19 }
16 </style> 20 </style>
17 <body> 21 <body>
18 <template id="target-template"> 22 <template id="target-template">
19 <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div> 23 <div>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
20 </template> 24 </template>
21 <script src="resources/interpolation-test.js"></script> 25 <script src="resources/interpolation-test.js"></script>
22 <script> 26 <script>
27 assertInterpolation({
28 property: '-webkit-column-count',
29 from: '',
30 to: '5',
31 }, [
32 {at: -0.4, is: '11'},
33 {at: -0.2, is: '10'},
34 {at: 0, is: '9'},
35 {at: 0.2, is: '8'},
36 {at: 0.4, is: '7'},
37 {at: 0.6, is: '7'},
38 {at: 0.8, is: '6'},
39 {at: 1, is: '5'},
40 {at: 1.2, is: '4'},
41 ]);
42
43 assertNoInterpolation({
44 property: '-webkit-column-count',
45 from: 'initial',
46 to: '5',
47 });
48
49 assertInterpolation({
50 property: '-webkit-column-count',
51 from: 'inherit',
52 to: '5',
53 }, [
54 {at: -0.4, is: '1'},
55 {at: -0.2, is: '1'},
56 {at: 0, is: '1'},
57 {at: 0.2, is: '2'},
58 {at: 0.4, is: '3'},
59 {at: 0.6, is: '3'},
60 {at: 0.8, is: '4'},
61 {at: 1, is: '5'},
62 {at: 1.2, is: '6'},
63 ]);
64
65 assertNoInterpolation({
66 property: '-webkit-column-count',
67 from: 'unset',
68 to: '5',
69 });
70
23 assertNoInterpolation({ 71 assertNoInterpolation({
24 property: '-webkit-column-count', 72 property: '-webkit-column-count',
25 from: 'auto', 73 from: 'auto',
26 to: '5' 74 to: '5'
27 }); 75 });
28 76
29 assertInterpolation({ 77 assertInterpolation({
30 property: '-webkit-column-count', 78 property: '-webkit-column-count',
31 from: '1', 79 from: '1',
32 to: '6' 80 to: '6'
(...skipping 20 matching lines...) Expand all
53 {at: -0.25, is: '1'}, // Must be strictly positive 101 {at: -0.25, is: '1'}, // Must be strictly positive
54 {at: 0, is: '1'}, 102 {at: 0, is: '1'},
55 {at: 0.25, is: '2'}, 103 {at: 0.25, is: '2'},
56 {at: 0.5, is: '3'}, 104 {at: 0.5, is: '3'},
57 {at: 0.75, is: '4'}, 105 {at: 0.75, is: '4'},
58 {at: 1, is: '5'}, 106 {at: 1, is: '5'},
59 {at: 1.25, is: '6'} 107 {at: 1.25, is: '6'}
60 ]); 108 ]);
61 </script> 109 </script>
62 </body> 110 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698