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

Side by Side Diff: polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/list-style-image-interpolation.html

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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
(Empty)
1 <!DOCTYPE html>
2 <meta charset="UTF-8">
3 <style>
4 .target {
5 background-color: black;
6 width: 100px;
7 }
8 .replica {
9 background-color: green;
10 }
11 </style>
12 <body>
13 <template id="target-template">
14 <ul>
15 <li class="target"></li>
16 </ul>
17 </template>
18 <script src="../testharness/testharness.js"></script>
19 <script src="../testharness/testharnessreport.js"></script>
20 <script src="resources/interpolation-test.js"></script>
21 <script>
22 // None to image
23 var from = 'none';
24 var to = 'url(../resources/stripes-20.png)';
25 assertInterpolation({
26 property: 'list-style-image',
27 from: from,
28 to: to
29 }, [
30 {at: -0.3, is: from},
31 {at: 0, is: from},
32 {at: 0.3, is: from},
33 {at: 0.6, is: to},
34 {at: 1, is: to},
35 {at: 1.5, is: to},
36 ]);
37
38 // Image to image
39 from = 'url(../resources/green-20.png)';
40 to = 'url(../resources/stripes-20.png)';
41 assertInterpolation({
42 property: 'list-style-image',
43 from: from,
44 to: to
45 }, [
46 {at: -0.3, is: from},
47 {at: 0, is: from},
48 {at: 0.3, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.3)'},
49 {at: 0.6, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.6)'},
50 {at: 1, is: to},
51 {at: 1.5, is: to},
52 ]);
53
54 // Image to gradient
55 to = 'linear-gradient(45deg, blue, orange)';
56 assertInterpolation({
57 property: 'list-style-image',
58 from: from,
59 to: to
60 }, [
61 {at: -0.3, is: from},
62 {at: 0, is: from},
63 {at: 0.3, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.3)'},
64 {at: 0.6, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.6)'},
65 {at: 1, is: to},
66 {at: 1.5, is: to},
67 ]);
68
69 // Gradient to gradient
70 from = 'linear-gradient(-45deg, red, yellow)';
71 assertInterpolation({
72 property: 'list-style-image',
73 from: from,
74 to: to
75 }, [
76 {at: -0.3, is: from},
77 {at: 0, is: from},
78 {at: 0.3, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.3)'},
79 {at: 0.6, is: '-webkit-cross-fade(' + from + ', ' + to + ', 0.6)'},
80 {at: 1, is: to},
81 {at: 1.5, is: to},
82 ]);
83 </script>
84 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698