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

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

Issue 767593002: Handle interpolation of SVG <paint> 'currentColor' w/ Web/CSS Animations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .target { 4 .target {
5 width: 100px; 5 width: 100px;
6 height: 100px; 6 height: 100px;
7 fill: black; 7 fill: black;
8 stroke-width: 20px; 8 stroke-width: 20px;
9 color: blue;
9 } 10 }
10 .replica { 11 .replica {
11 fill: green; 12 fill: green;
12 } 13 }
13 </style> 14 </style>
14 <body> 15 <body>
15 <template id="target-template"> 16 <template id="target-template">
16 <svg> 17 <svg>
17 <defs> 18 <defs>
18 <linearGradient id="gradient"> 19 <linearGradient id="gradient">
(...skipping 13 matching lines...) Expand all
32 {at: -0.4, is: '#ffe700'}, 33 {at: -0.4, is: '#ffe700'},
33 {at: 0, is: 'orange'}, 34 {at: 0, is: 'orange'},
34 {at: 0.2, is: '#cc8433'}, 35 {at: 0.2, is: '#cc8433'},
35 {at: 0.6, is: '#664299'}, 36 {at: 0.6, is: '#664299'},
36 {at: 1, is: 'blue'}, 37 {at: 1, is: 'blue'},
37 {at: 1.5, is: 'blue'} 38 {at: 1.5, is: 'blue'}
38 ]); 39 ]);
39 assertInterpolation({ 40 assertInterpolation({
40 property: 'stroke', 41 property: 'stroke',
41 from: 'orange', 42 from: 'orange',
43 to: 'currentColor'
44 }, [
45 {at: 0, is: 'orange'},
46 {at: 0.2, is: '#cc8433'},
47 {at: 0.6, is: '#664299'},
48 {at: 1, is: 'blue'},
49 ]);
50 assertInterpolation({
51 property: 'stroke',
52 from: 'currentColor',
53 to: 'orange'
54 }, [
55 {at: 0, is: 'blue'},
56 {at: 0.2, is: '#3321cc'},
57 {at: 0.6, is: '#996366'},
58 {at: 1, is: 'orange'},
59 ]);
60 assertInterpolation({
61 property: 'stroke',
62 from: 'orange',
42 to: 'url(#gradient)' 63 to: 'url(#gradient)'
43 }, [ 64 }, [
44 {at: 0.2, is: 'orange'}, 65 {at: 0.2, is: 'orange'},
45 {at: 0.6, is: 'url(#gradient)'} 66 {at: 0.6, is: 'url(#gradient)'}
46 ]); 67 ]);
47 </script> 68 </script>
48 </body> 69 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698