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

Side by Side Diff: polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/background-position-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 width: 120px;
6 height: 120px;
7 display: inline-block;
8 border: 2px solid black;
9 background-repeat: no-repeat;
10 background-image: radial-gradient(20px circle at 20px 20px, red 18px, transpar ent),
11 radial-gradient(20px circle at 20px 20px, yellow 18px, trans parent),
12 radial-gradient(20px circle at 20px 20px, lime 18px, transpa rent),
13 radial-gradient(20px circle at 20px 20px, blue 18px, transpa rent);
14 }
15 .replica {
16 margin-right: 10px;
17 }
18 </style>
19 <body>
20 <script src="../testharness/testharness.js"></script>
21 <script src="../testharness/testharnessreport.js"></script>
22 <script src="resources/interpolation-test.js"></script>
23 <script>
24 // Test equal number of position values as background images.
25 assertInterpolation({
26 property: 'background-position',
27 from: '0px 0px, 0px 0px, 0px 0px, 0px 0px',
28 to: '80px 80px, 80px 80px, 80px 80px, 80px 80px',
29 }, [
30 {at: -0.25, is: '-20px -20px, -20px -20px, -20px -20px, -20px -20px'},
31 {at: 0, is: ' 0px 0px, 0px 0px, 0px 0px, 0px 0px'},
32 {at: 0.25, is: ' 20px 20px, 20px 20px, 20px 20px, 20px 20px'},
33 {at: 0.5, is: ' 40px 40px, 40px 40px, 40px 40px, 40px 40px'},
34 {at: 0.75, is: ' 60px 60px, 60px 60px, 60px 60px, 60px 60px'},
35 {at: 1, is: ' 80px 80px, 80px 80px, 80px 80px, 80px 80px'},
36 {at: 1.25, is: '100px 100px, 100px 100px, 100px 100px, 100px 100px'},
37 ]);
38
39 // Test single position value repeated over background images.
40 assertInterpolation({
41 property: 'background-position',
42 from: 'top 0px left 0px',
43 to: 'left 80px top 80px',
44 }, [
45 {at: -0.25, is: '-20px -20px, -20px -20px, -20px -20px, -20px -20px'},
46 {at: 0, is: ' top 0px left 0px, 0px 0px, 0px 0px, 0px 0px'},
47 {at: 0.25, is: ' 20px 20px, 20px 20px, 20px 20px, 20px 20px'},
48 {at: 0.5, is: ' 40px 40px, 40px 40px, 40px 40px, 40px 40px'},
49 {at: 0.75, is: ' 60px 60px, 60px 60px, 60px 60px, 60px 60px'},
50 {at: 1, is: ' left 80px top 80px, 80px 80px, 80px 80px, 80px 80px'},
51 {at: 1.25, is: '100px 100px, 100px 100px, 100px 100px, 100px 100px'},
52 ]);
53
54 // Test mismatched numbers of position values.
55 assertInterpolation({
56 property: 'background-position',
57 from: '0px 0px, 80px 0px',
58 to: '40px 40px, 80px 80px, 0px 80px',
59 }, [
60 {at: -0.25, is: '-10px -10px, 80px -20px, 0px -20px, 90px -10px'},
61 {at: 0, is: ' 0px 0px, 80px 0px, 0px 0px, 80px 0px'},
62 {at: 0.25, is: ' 10px 10px, 80px 20px, 0px 20px, 70px 10px'},
63 {at: 0.5, is: ' 20px 20px, 80px 40px, 0px 40px, 60px 20px'},
64 {at: 0.75, is: ' 30px 30px, 80px 60px, 0px 60px, 50px 30px'},
65 {at: 1, is: ' 40px 40px, 80px 80px, 0px 80px, 40px 40px'},
66 {at: 1.25, is: ' 50px 50px, 80px 100px, 0px 100px, 30px 50px'},
67 ]);
68 </script>
69 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698