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

Side by Side Diff: LayoutTests/animations/interpolation/vertical-align-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 vertical-align: 100px;
6 }
4 .target { 7 .target {
5 width: 100px; 8 width: 100px;
6 height: 100px; 9 height: 100px;
7 background-color: black; 10 background-color: black;
8 display: inline-block; 11 display: inline-block;
12 vertical-align: 10px;
9 } 13 }
10 .expected { 14 .expected {
11 background-color: green; 15 background-color: green;
12 } 16 }
13 </style> 17 </style>
14 <body> 18 <body>
15 <script src="resources/interpolation-test.js"></script> 19 <script src="resources/interpolation-test.js"></script>
16 <script> 20 <script>
17 assertInterpolation({ 21 assertInterpolation({
18 property: 'vertical-align', 22 property: 'vertical-align',
23 from: '',
24 to: '40px',
25 }, [
26 {at: -0.5, is: '-5px'},
27 {at: 0, is: '10px'},
28 {at: 0.3, is: '19px'},
29 {at: 0.6, is: '28px'},
30 {at: 1, is: '40px'},
31 {at: 1.5, is: '55px'},
32 ]);
33
34 assertNoInterpolation({
35 property: 'vertical-align',
36 from: 'initial',
37 to: '40px',
38 });
39
40 assertInterpolation({
41 property: 'vertical-align',
42 from: 'inherit',
43 to: '40px',
44 }, [
45 {at: -0.5, is: '130px'},
46 {at: 0, is: '100px'},
47 {at: 0.3, is: '82px'},
48 {at: 0.6, is: '64px'},
49 {at: 1, is: '40px'},
50 {at: 1.5, is: '10px'},
51 ]);
52
53 assertNoInterpolation({
54 property: 'vertical-align',
55 from: 'unset',
56 to: '40px',
57 });
58
59 assertInterpolation({
60 property: 'vertical-align',
19 from: '0px', 61 from: '0px',
20 to: '100px' 62 to: '100px'
21 }, [ 63 }, [
22 {at: -0.5, is: '-50px'}, 64 {at: -0.5, is: '-50px'},
23 {at: 0, is: '0px'}, 65 {at: 0, is: '0px'},
24 {at: 0.3, is: '30px'}, 66 {at: 0.3, is: '30px'},
25 {at: 0.6, is: '60px'}, 67 {at: 0.6, is: '60px'},
26 {at: 1, is: '100px'}, 68 {at: 1, is: '100px'},
27 {at: 1.5, is: '150px'} 69 {at: 1.5, is: '150px'}
28 ]); 70 ]);
(...skipping 10 matching lines...) Expand all
39 {at: 1.5, is: 'calc(-20px + 60%)'} 81 {at: 1.5, is: 'calc(-20px + 60%)'}
40 ]); 82 ]);
41 83
42 assertNoInterpolation({ 84 assertNoInterpolation({
43 property: 'vertical-align', 85 property: 'vertical-align',
44 from: 'super', 86 from: 'super',
45 to: '40%' 87 to: '40%'
46 }); 88 });
47 </script> 89 </script>
48 </body> 90 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698