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

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

Powered by Google App Engine
This is Rietveld 408576698