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

Side by Side Diff: LayoutTests/animations/interpolation/webkit-column-rule-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 -webkit-column-rule-style: solid; 5 -webkit-column-rule-style: solid;
6 -webkit-column-rule-width: 90px; 6 -webkit-column-rule-width: 90px;
7 } 7 }
8 .target { 8 .target {
9 -webkit-column-count: 2; 9 -webkit-column-count: 2;
10 -webkit-column-rule: 2px solid black; 10 -webkit-column-rule: 2px solid black;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 assertInterpolation({ 42 assertInterpolation({
43 property: '-webkit-column-rule-width', 43 property: '-webkit-column-rule-width',
44 from: 'initial', 44 from: 'initial',
45 to: '40px', 45 to: '40px',
46 }, [ 46 }, [
47 {at: -0.3, is: '0px'}, 47 {at: -0.3, is: '0px'},
48 {at: 0, is: '3px'}, 48 {at: 0, is: '3px'},
49 {at: 0.3, is: '14px'}, 49 {at: 0.3, is: '14px'},
50 {at: 0.6, is: '25px'}, 50 {at: 0.6, is: '25px'},
51 {at: 1, is: '40px'}, 51 {at: 1, is: '40px'},
52 {at: 1.5, is: '59px'}, 52 {at: 1.5, is: '58px'},
53 ]); 53 ]);
54 54
55 assertInterpolation({ 55 assertInterpolation({
56 property: '-webkit-column-rule-width', 56 property: '-webkit-column-rule-width',
57 from: 'inherit', 57 from: 'inherit',
58 to: '40px', 58 to: '40px',
59 }, [ 59 }, [
60 {at: -0.3, is: '105px'}, 60 {at: -0.3, is: '105px'},
61 {at: 0, is: '90px'}, 61 {at: 0, is: '90px'},
62 {at: 0.3, is: '75px'}, 62 {at: 0.3, is: '75px'},
63 {at: 0.6, is: '60px'}, 63 {at: 0.6, is: '60px'},
64 {at: 1, is: '40px'}, 64 {at: 1, is: '40px'},
65 {at: 1.5, is: '15px'}, 65 {at: 1.5, is: '15px'},
66 ]); 66 ]);
67 67
68 assertInterpolation({ 68 assertInterpolation({
69 property: '-webkit-column-rule-width', 69 property: '-webkit-column-rule-width',
70 from: 'unset', 70 from: 'unset',
71 to: '40px', 71 to: '40px',
72 }, [ 72 }, [
73 {at: -0.3, is: '0px'}, 73 {at: -0.3, is: '0px'},
74 {at: 0, is: '3px'}, 74 {at: 0, is: '3px'},
75 {at: 0.3, is: '14px'}, 75 {at: 0.3, is: '14px'},
76 {at: 0.6, is: '25px'}, 76 {at: 0.6, is: '25px'},
77 {at: 1, is: '40px'}, 77 {at: 1, is: '40px'},
78 {at: 1.5, is: '59px'}, 78 {at: 1.5, is: '58px'},
79 ]); 79 ]);
80 80
81 assertInterpolation({ 81 assertInterpolation({
82 property: '-webkit-column-rule-width', 82 property: '-webkit-column-rule-width',
83 from: '0px', 83 from: '0px',
84 to: '100px' 84 to: '100px'
85 }, [ 85 }, [
86 {at: -0.3, is: '0'}, // -webkit-column-rule-width can't be negative. 86 {at: -0.3, is: '0'}, // -webkit-column-rule-width can't be negative.
87 {at: 0, is: '0'}, 87 {at: 0, is: '0'},
88 {at: 0.3, is: '30px'}, 88 {at: 0.3, is: '30px'},
89 {at: 0.6, is: '60px'}, 89 {at: 0.6, is: '60px'},
90 {at: 1, is: '100px'}, 90 {at: 1, is: '100px'},
91 {at: 1.5, is: '150px'}, 91 {at: 1.5, is: '150px'},
92 ]); 92 ]);
93 </script> 93 </script>
94 </body> 94 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698