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

Side by Side Diff: LayoutTests/animations/interpolation/clip-interpolation.html

Issue 22799020: Web Animations CSS: Support Animation of StyleImage and LengthBox (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 3 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 <body>
3 <style>
4 .target {
5 width: 80px;
6 height: 80px;
7 display: inline-block;
8 position: absolute;
9 /* FIXME: Remove when interpolation of clip is fixed: http://crbug.com/279684 */
10 clip: rect(auto, auto, auto, auto);
11 top: 300px;
12 }
13 .active { background: red; }
14 .replica { background: black; }
15 .test-1-1 { left: 0px; }
16 .test-1-2 { left: 100px; }
17 .test-1-3 { left: 200px; }
18 .test-1-4 { left: 300px; }
19 .test-1-5 { left: 400px; }
20
21 .test-2-1 { left: 510px; }
22 .test-2-2 { left: 610px; }
23
24 .test-3-1 { left: 720px; }
25 .test-3-2 { left: 820px; }
26 .test-3-3 { left: 920px; }
27 .test-3-4 { left: 1020px; }
28
29 .test-4-1, .test-4-2, .test-4-3, .test-4-4 { clip: auto; }
30 .test-4-1 { left: 1130px; }
31 .test-4-2 { left: 1230px; }
32 .test-4-3 { left: 1130px; }
33 .test-4-4 { left: 1230px; }
34 </style>
35 <script src="resources/interpolation-test.js"></script>
36 <script>
37 assertInterpolation({
38 property: 'clip',
39 from: 'rect(0px, 75px, 80px, 10px)',
40 to: 'rect(0px, 100px, 90px, 5px)'
41 }, [
42 {at: -1, is: 'rect(0px, 50px, 70px, 15px)'},
43 {at: 0, is: 'rect(0px, 75px, 80px, 10px)'},
44 {at: 0.5, is: 'rect(0px, 87.5px, 85px, 7.5px)'},
45 {at: 1, is: 'rect(0px, 100px, 90px, 5px)'},
46 {at: 1.5, is: 'rect(0px, 112.5px, 95px, 2.5px)'},
47 ]);
48
49 assertInterpolation({
50 property: 'clip',
51 from: 'rect(auto, auto, auto, 10px)',
52 to: 'rect(20px, 50px, 50px, auto)'
53 }, [
54 {at: 0.4, is: 'rect(0px, 0px, 0px, 10px)'},
55 {at: 0.6, is: 'rect(20px, 50px, 50px, 0px)'}
56 ]);
57
58 assertInterpolation({
59 property: 'clip',
60 from: 'rect(auto, 0px, auto, 10px)',
61 to: 'rect(auto, 50px, 50px, auto)'
62 }, [
63 {at: -1, is: 'rect(0px, -50px, 0px, 10px)'},
64 {at: 0.4, is: 'rect(0px, 20px, 0px, 10px)'},
65 {at: 0.6, is: 'rect(0px, 30px, 50px, 0px)'},
66 {at: 2, is: 'rect(0px, 100px, 50px, 0px)'}
67 ]);
68
69 assertInterpolation({
70 property: 'clip',
71 from: 'auto',
72 to: 'rect(0px, 50px, 50px, 0px)'
73 }, [
74 {at: -1, is: 'auto'},
75 {at: 0.25, is: 'auto'},
76 {at: 0.75, is: 'rect(0px, 50px, 50px, 0px)'},
77 {at: 2, is: 'rect(0px, 50px, 50px, 0px)'}
78 ]);
79 </script>
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/animations/interpolation/clip-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698