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

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

Issue 991533003: Handle more <length> properties in animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: stroke-dashoffset setter exists + fixups + add tests Created 5 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/svg-cx-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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 svg { 4 svg {
5 stroke-dashoffset: 100px; 5 cx: 100px;
6 } 6 }
7 .target { 7 .target {
8 stroke: black; 8 stroke: black;
9 stroke-width: 10px;
10 font-size: 16px; 9 font-size: 16px;
11 } 10 }
12 .replica { 11 .replica {
13 stroke: green; 12 stroke: green;
14 } 13 }
15 </style> 14 </style>
16 <body> 15 <body>
17 <template id="target-template"> 16 <template id="target-template">
18 <svg height="200" width="10"> 17 <svg height="200" width="10">
19 <path d="M5,0 l0,200" stroke-dasharray="15,15" class="target"> 18 <circle cx="50%" cy="50%" r="25%" class="target">
20 </svg> 19 </svg>
21 </template> 20 </template>
22 <script src="resources/interpolation-test.js"></script> 21 <script src="resources/interpolation-test.js"></script>
23 <script> 22 <script>
24 assertInterpolation({ 23 assertInterpolation({
25 property: 'stroke-dashoffset', 24 property: 'cx',
26 from: '-10px', 25 from: '-10px',
27 to: '10px' 26 to: '10px'
28 }, [ 27 }, [
29 {at: -0.25, is: '-15px'}, 28 {at: -0.25, is: '-15px'},
30 {at: 0, is: '-10px'}, 29 {at: 0, is: '-10px'},
31 {at: 0.25, is: '-5px'}, 30 {at: 0.25, is: '-5px'},
32 {at: 0.5, is: '0px'}, 31 {at: 0.5, is: '0px'},
33 {at: 0.75, is: '5px'}, 32 {at: 0.75, is: '5px'},
34 {at: 1, is: '10px'}, 33 {at: 1, is: '10px'},
35 {at: 1.25, is: '15px'}, 34 {at: 1.25, is: '15px'},
36 ]); 35 ]);
37 assertInterpolation({ 36 assertInterpolation({
38 property: 'stroke-dashoffset', 37 property: 'cx',
39 from: '-20px', 38 from: '-20px',
40 to: '30em' 39 to: '30em'
41 }, [ 40 }, [
42 {at: -0.25, is: '-145px'}, 41 {at: -0.25, is: '-145px'},
43 {at: 0, is: '-20px'}, 42 {at: 0, is: '-20px'},
44 {at: 0.25, is: '105px'}, 43 {at: 0.25, is: '105px'},
45 {at: 0.5, is: '230px'}, 44 {at: 0.5, is: '230px'},
46 {at: 0.75, is: '355px'}, 45 {at: 0.75, is: '355px'},
47 {at: 1, is: '30em'}, 46 {at: 1, is: '30em'},
48 {at: 1.25, is: '605px'}, 47 {at: 1.25, is: '605px'},
49 ]); 48 ]);
50 assertInterpolation({ 49 assertInterpolation({
51 property: 'stroke-dashoffset', 50 property: 'cx',
52 from: 'inherit', 51 from: 'inherit',
53 to: '140px' 52 to: '140px'
54 }, [ 53 }, [
55 {at: -0.25, is: '90px'}, 54 {at: -0.25, is: '90px'},
56 {at: 0, is: '100px'}, 55 {at: 0, is: '100px'},
57 {at: 0.25, is: '110px'}, 56 {at: 0.25, is: '110px'},
58 {at: 0.5, is: '120px'}, 57 {at: 0.5, is: '120px'},
59 {at: 0.75, is: '130px'}, 58 {at: 0.75, is: '130px'},
60 {at: 1, is: '140px'}, 59 {at: 1, is: '140px'},
61 {at: 1.25, is: '150px'}, 60 {at: 1.25, is: '150px'},
62 ]); 61 ]);
62 assertInterpolation({
63 property: 'cx',
64 from: '-10',
65 to: '10'
66 }, [
67 {at: -0.25, is: '-15'},
68 {at: 0, is: '-10'},
69 {at: 0.25, is: '-5'},
70 {at: 0.5, is: '0'},
71 {at: 0.75, is: '5'},
72 {at: 1, is: '10'},
73 {at: 1.25, is: '15'},
74 ]);
63 </script> 75 </script>
64 </body> 76 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/svg-cx-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698