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

Side by Side Diff: LayoutTests/animations/interpolation/background-position-interpolation.html

Issue 26247003: Web Animations CSS: Support animation of background-position and background-image (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review changes Created 7 years, 2 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
(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="resources/interpolation-test.js"></script>
21 <script>
22 assertInterpolation({
23 property: 'background-position',
24 from: '0px 0px, 80px 0px',
Steve Block 2013/10/09 23:19:05 Superfluous space (or make these line up as you do
alancutter (OOO until 2018) 2013/10/10 00:58:38 Removed space.
25 to: '40px 40px, 80px 80px, 0px 80px',
26 }, [
27 {at: -0.25, is: '-10px -10px, 80px -20px, 0px -20px, 90px -10px'},
28 {at: 0, is: ' 0px 0px, 80px 0px, 0px 0px, 80px 0px'},
29 {at: 0.25, is: ' 10px 10px, 80px 20px, 0px 20px, 70px 10px'},
30 {at: 0.5, is: ' 20px 20px, 80px 40px, 0px 40px, 60px 20px'},
31 {at: 0.75, is: ' 30px 30px, 80px 60px, 0px 60px, 50px 30px'},
32 {at: 1, is: ' 40px 40px, 80px 80px, 0px 80px, 40px 40px'},
33 {at: 1.25, is: ' 50px 50px, 80px 100px, 0px 100px, 30px 50px'},
34 ]);
35 assertInterpolation({
36 property: 'background-position',
37 from: 'top 0px left 0px',
38 to: 'left 80px top 80px',
dstockwell 2013/10/09 23:15:07 test a matching case too? can we get a PASS from t
alancutter (OOO until 2018) 2013/10/10 00:58:38 Added test for matching number of position values
39 }, [
40 {at: -0.25, is: '-20px -20px, -20px -20px, -20px -20px, -20px -20px'},
41 {at: 0, is: ' 0px 0px, 0px 0px, 0px 0px, 0px 0px'},
42 {at: 0.25, is: ' 20px 20px, 20px 20px, 20px 20px, 20px 20px'},
43 {at: 0.5, is: ' 40px 40px, 40px 40px, 40px 40px, 40px 40px'},
44 {at: 0.75, is: ' 60px 60px, 60px 60px, 60px 60px, 60px 60px'},
45 {at: 1, is: ' 80px 80px, 80px 80px, 80px 80px, 80px 80px'},
46 {at: 1.25, is: '100px 100px, 100px 100px, 100px 100px, 100px 100px'},
47 ]);
48 </script>
49 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698