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

Side by Side Diff: LayoutTests/animations/interpolation/svg-fill-interpolation.html

Issue 25456002: Web Animations CSS: Support animation of fill and stroke (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review feedback 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
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/svg-fill-interpolation-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="UTF-8">
3 <style>
4 .target {
5 width: 100px;
6 height: 100px;
7 stroke: black;
8 stroke-width: 20px;
9 }
10 .replica {
11 stroke: green;
12 }
13 </style>
14 <body>
15 <template id="target-template">
16 <svg>
17 <defs>
18 <linearGradient id="gradient">
19 <stop offset="0" stop-color="green"/>
20 <stop offset="1" stop-color="gold"/>
21 </linearGradient>
22 </defs>
23 <rect x="0" y="0" width="100" height="100">
24 </template>
25 <script src="resources/interpolation-test.js"></script>
26 <script>
27 assertInterpolation({
28 property: 'fill',
29 from: 'orange',
30 to: 'blue'
31 }, [
32 {at: -5, is: '#ffff00'},
33 {at: -0.4, is: '#ffe700'},
34 {at: 0, is: 'orange'},
35 {at: 0.2, is: '#cc8433'},
36 {at: 0.6, is: '#664299'},
37 {at: 1, is: 'blue'},
38 {at: 1.5, is: 'blue'}
39 ]);
40 assertInterpolation({
41 property: 'fill',
42 from: 'orange',
43 to: 'url(#gradient)'
44 }, [
45 {at: 0, is: 'orange'},
46 {at: 0.2, is: 'orange'},
47 {at: 0.6, is: 'url(#gradient)'},
48 {at: 1, is: 'url(#gradient)'}
49 ]);
50 </script>
51 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/svg-fill-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698