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

Side by Side Diff: LayoutTests/animations/interpolation/widows-interpolation.html

Issue 811993002: Animation: Implement DoubleStyleInterpolation in StringKeyframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove shape image threshold test Created 5 years, 10 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 <style> 3 <style>
4 .target { 4 .target {
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 background-color: black; 7 background-color: black;
8 display: inline-block; 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: 'widows', 14 property: 'widows',
15 from: '10', 15 from: '10',
16 to: '20' 16 to: '20'
17 }, [ 17 }, [
18 {at: -3.0, is: '1'}, 18 {at: -3.0, is: '1'},
19 {at: -2.5, is: '1'}, 19 {at: -2.5, is: '1'},
20 {at: -0.5, is: '5'}, 20 {at: -0.5, is: '5'},
21 {at: 0, is: '10'}, 21 {at: 0, is: '10'},
22 {at: 0.3, is: '13'}, 22 {at: 0.3, is: '13'},
23 {at: 0.6, is: '16'}, 23 {at: 0.6, is: '16'},
24 {at: 1, is: '20'}, 24 {at: 1, is: '20'},
25 {at: 1.5, is: '25'} 25 {at: 1.5, is: '25'}
26 ]); 26 ]);
27 assertInterpolation({
28 property: 'widows',
29 from: '2',
30 to: '4'
31 }, [
32 {at: -3.0, is: '1'},
33 {at: -2.5, is: '1'},
34 {at: -0.5, is: '1'},
35 {at: 0, is: '2'},
36 {at: 0.3, is: '3'},
37 {at: 0.6, is: '3'},
38 {at: 1, is: '4'},
39 {at: 1.5, is: '5'}
40 ]);
27 </script> 41 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698