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

Side by Side Diff: polymer_0.5.0/bower_components/web-animations-js/test/blink/interpolation/border-radius-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: 80px;
6 height: 80px;
7 display: inline-block;
8 background-color: black;
9 margin-right: 5px;
10 }
11 .replica {
12 background-color: green;
13 margin-right: 15px;
14 }
15 </style>
16 <body>
17 <script src="../testharness/testharness.js"></script>
18 <script src="../testharness/testharnessreport.js"></script>
19 <script src="resources/interpolation-test.js"></script>
20 <script>
21 assertInterpolation({
22 property: 'border-radius',
23 from: '10px',
24 to: '50px'
25 }, [
26 {at: -0.3, is: '0px'}, // CSS border-radius can't be negative.
27 {at: 0, is: '10px'},
28 {at: 0.3, is: '22px'},
29 {at: 0.6, is: '34px'},
30 {at: 1, is: '50px'},
31 {at: 1.5, is: '70px'},
32 ]);
33 assertInterpolation({
34 property: 'border-radius',
35 from: '10px',
36 to: '100%'
37 }, [
38 // These expectations are expected to fail on the current animation engine
39 // with different (but equivalent) calc expressions.
40 {at: -0.3, is: 'calc(13px + -30%)'},
41 {at: 0, is: '10px'},
42 {at: 0.3, is: 'calc(7px + 30%)'},
43 {at: 0.6, is: 'calc(4px + 60%)'},
44 {at: 1, is: '100%'},
45 {at: 1.5, is: 'calc(-5px + 150%)'},
46 ]);
47 </script>
48 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698