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

Side by Side Diff: LayoutTests/animations/interpolation/orphans-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 <body> 2 <body>
3 <style> 3 <style>
4 .parent {
5 orphans: 30;
6 }
4 .target { 7 .target {
5 width: 100px; 8 orphans: 10;
6 height: 100px;
7 background-color: black;
8 display: inline-block;
9 } 9 }
10 </style> 10 </style>
11 <script src="resources/interpolation-test.js"></script> 11 <script src="resources/interpolation-test.js"></script>
12 <script> 12 <script>
13 assertInterpolation({ 13 assertInterpolation({
14 property: 'orphans', 14 property: 'orphans',
15 from: '',
16 to: '20',
17 }, [
18 {at: -0.5, is: '5'},
19 {at: 0, is: '10'},
20 {at: 0.3, is: '13'},
21 {at: 0.7, is: '17'},
22 {at: 1, is: '20'},
23 {at: 1.5, is: '25'},
24 ]);
25
26 assertInterpolation({
27 property: 'orphans',
28 from: 'initial',
29 to: '20',
30 }, [
31 {at: -0.5, is: '1'},
32 {at: 0, is: '2'},
33 {at: 0.3, is: '7'},
34 {at: 0.7, is: '15'},
35 {at: 1, is: '20'},
36 {at: 1.5, is: '29'},
37 ]);
38
39 assertInterpolation({
40 property: 'orphans',
41 from: 'inherit',
42 to: '20',
43 }, [
44 {at: -0.5, is: '35'},
45 {at: 0, is: '30'},
46 {at: 0.3, is: '27'},
47 {at: 0.7, is: '23'},
48 {at: 1, is: '20'},
49 {at: 1.5, is: '15'},
50 ]);
51
52 assertInterpolation({
53 property: 'orphans',
54 from: 'unset',
55 to: '20',
56 }, [
57 {at: -0.5, is: '35'},
58 {at: 0, is: '30'},
59 {at: 0.3, is: '27'},
60 {at: 0.7, is: '23'},
61 {at: 1, is: '20'},
62 {at: 1.5, is: '15'},
63 ]);
64
65 assertInterpolation({
66 property: 'orphans',
15 from: '10', 67 from: '10',
16 to: '1' 68 to: '1'
17 }, [ 69 }, [
18 {at: -0.5, is: '15'}, 70 {at: -0.5, is: '15'},
19 {at: 0, is: '10'}, 71 {at: 0, is: '10'},
20 {at: 0.3, is: '7'}, 72 {at: 0.3, is: '7'},
21 {at: 0.7, is: '4'}, 73 {at: 0.7, is: '4'},
22 // Only positive integers are valid 74 // Only positive integers are valid
23 {at: 1, is: '1'}, 75 {at: 1, is: '1'},
24 {at: 1.5, is: '1'} 76 {at: 1.5, is: '1'}
25 ]); 77 ]);
26 </script> 78 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698