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

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

Issue 1259803007: Make AnimatedStyleBuilder value rounding consistent with StyleBuilder (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <meta charset="UTF-8"> 2 <meta charset="UTF-8">
3 <style> 3 <style>
4 .parent { 4 .parent {
5 outline: solid transparent; 5 outline: solid transparent;
6 outline-width: 30px; 6 outline-width: 30px;
7 } 7 }
8 .target { 8 .target {
9 width: 50px; 9 width: 50px;
10 height: 50px; 10 height: 50px;
(...skipping 27 matching lines...) Expand all
38 assertInterpolation({ 38 assertInterpolation({
39 property: 'outline-width', 39 property: 'outline-width',
40 from: 'initial', 40 from: 'initial',
41 to: '20px', 41 to: '20px',
42 }, [ 42 }, [
43 {at: -0.3, is: '0px'}, 43 {at: -0.3, is: '0px'},
44 {at: 0, is: '3px'}, 44 {at: 0, is: '3px'},
45 {at: 0.3, is: '8px'}, 45 {at: 0.3, is: '8px'},
46 {at: 0.6, is: '13px'}, 46 {at: 0.6, is: '13px'},
47 {at: 1, is: '20px'}, 47 {at: 1, is: '20px'},
48 {at: 1.5, is: '29px'}, 48 {at: 1.5, is: '28px'},
49 ]); 49 ]);
50 50
51 assertInterpolation({ 51 assertInterpolation({
52 property: 'outline-width', 52 property: 'outline-width',
53 from: 'inherit', 53 from: 'inherit',
54 to: '20px', 54 to: '20px',
55 }, [ 55 }, [
56 {at: -0.3, is: '33px'}, 56 {at: -0.3, is: '33px'},
57 {at: 0, is: '30px'}, 57 {at: 0, is: '30px'},
58 {at: 0.3, is: '27px'}, 58 {at: 0.3, is: '27px'},
59 {at: 0.6, is: '24px'}, 59 {at: 0.6, is: '24px'},
60 {at: 1, is: '20px'}, 60 {at: 1, is: '20px'},
61 {at: 1.5, is: '15px'}, 61 {at: 1.5, is: '15px'},
62 ]); 62 ]);
63 63
64 assertInterpolation({ 64 assertInterpolation({
65 property: 'outline-width', 65 property: 'outline-width',
66 from: 'unset', 66 from: 'unset',
67 to: '20px', 67 to: '20px',
68 }, [ 68 }, [
69 {at: -0.3, is: '0px'}, 69 {at: -0.3, is: '0px'},
70 {at: 0, is: '3px'}, 70 {at: 0, is: '3px'},
71 {at: 0.3, is: '8px'}, 71 {at: 0.3, is: '8px'},
72 {at: 0.6, is: '13px'}, 72 {at: 0.6, is: '13px'},
73 {at: 1, is: '20px'}, 73 {at: 1, is: '20px'},
74 {at: 1.5, is: '29px'}, 74 {at: 1.5, is: '28px'},
75 ]); 75 ]);
76 76
77 assertInterpolation({ 77 assertInterpolation({
78 property: 'outline-width', 78 property: 'outline-width',
79 from: '0px', 79 from: '0px',
80 to: '10px', 80 to: '10px',
81 }, [ 81 }, [
82 {at: -0.3, is: '0px'}, // CSS outline-width can't be negative. 82 {at: -0.3, is: '0px'}, // CSS outline-width can't be negative.
83 {at: 0, is: '0px'}, 83 {at: 0, is: '0px'},
84 {at: 0.3, is: '3px'}, 84 {at: 0.3, is: '3px'},
(...skipping 10 matching lines...) Expand all
95 {at: -2, is: '0px'}, // CSS outline-width can't be negative. 95 {at: -2, is: '0px'}, // CSS outline-width can't be negative.
96 {at: -0.3, is: '2px'}, 96 {at: -0.3, is: '2px'},
97 {at: 0, is: '5px'}, 97 {at: 0, is: '5px'},
98 {at: 0.3, is: '8px'}, 98 {at: 0.3, is: '8px'},
99 {at: 0.6, is: '11px'}, 99 {at: 0.6, is: '11px'},
100 {at: 1, is: '15px'}, 100 {at: 1, is: '15px'},
101 {at: 1.5, is: '20px'} 101 {at: 1.5, is: '20px'}
102 ]); 102 ]);
103 </script> 103 </script>
104 </body> 104 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698