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

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

Issue 983103003: Use Length for the stroke-width property in SVGLayoutStyle (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: lengthSetterForProperty 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/svg-stroke-width-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 .target { 4 .target {
5 stroke: black; 5 stroke: black;
6 fill: white; 6 fill: white;
7 stroke-width: 5px; 7 stroke-width: 5px;
8 } 8 }
9 .replica { 9 .replica {
10 stroke: green; 10 stroke: green;
(...skipping 29 matching lines...) Expand all
40 {at: 0.3, is: '3em'}, 40 {at: 0.3, is: '3em'},
41 {at: 0.6, is: '6em'}, 41 {at: 0.6, is: '6em'},
42 {at: 1, is: '10em'}, 42 {at: 1, is: '10em'},
43 {at: 1.5, is: '15em'}, 43 {at: 1.5, is: '15em'},
44 ]); 44 ]);
45 assertInterpolation({ 45 assertInterpolation({
46 property: 'stroke-width', 46 property: 'stroke-width',
47 from: '30px', 47 from: '30px',
48 to: '10em' 48 to: '10em'
49 }, [ 49 }, [
50 {at: -0.3, is: '30px'}, 50 {at: -0.3, is: '0px'},
51 {at: 0, is: '30px'}, 51 {at: 0, is: '30px'},
52 {at: 0.3, is: '30px'}, 52 {at: 0.3, is: '69px'},
53 {at: 0.6, is: '10em'}, 53 {at: 0.6, is: '108px'},
54 {at: 1, is: '10em'}, 54 {at: 1, is: '10em'},
55 {at: 1.5, is: '10em'}, 55 {at: 1.5, is: '225px'},
56 ]); 56 ]);
57 assertInterpolation({ 57 assertInterpolation({
58 property: 'stroke-width', 58 property: 'stroke-width',
59 from: '10em', 59 from: '10em',
60 to: '0px' 60 to: '0px'
61 }, [ 61 }, [
62 {at: -0.3, is: '13em'}, 62 {at: -0.3, is: '13em'},
63 {at: 0, is: '10em'}, 63 {at: 0, is: '10em'},
64 {at: 0.3, is: '7em'}, 64 {at: 0.3, is: '7em'},
65 {at: 0.6, is: '4em'}, 65 {at: 0.6, is: '4em'},
66 {at: 1, is: '0em'}, 66 {at: 1, is: '0em'},
67 {at: 1.5, is: '0em'}, // SVG stroke-width can't be negative. 67 {at: 1.5, is: '0em'}, // SVG stroke-width can't be negative.
68 ]); 68 ]);
69 assertInterpolation({ 69 assertInterpolation({
70 property: 'stroke-width', 70 property: 'stroke-width',
71 from: '10em', 71 from: '10em',
72 to: '30px' 72 to: '30px'
73 }, [ 73 }, [
74 {at: -0.3, is: '10em'}, 74 {at: -0.3, is: '199px'},
75 {at: 0, is: '10em'}, 75 {at: 0, is: '10em'},
76 {at: 0.3, is: '10em'}, 76 {at: 0.3, is: '121px'},
77 {at: 0.6, is: '30px'}, 77 {at: 0.6, is: '82px'},
78 {at: 1, is: '30px'}, 78 {at: 1, is: '30px'},
79 {at: 1.5, is: '30px'}, 79 {at: 1.5, is: '0px'},
80 ]); 80 ]);
81 </script> 81 </script>
82 </body> 82 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/svg-stroke-width-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698