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

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

Issue 1243313002: Migrate the remaining CSS properties interpolable as Lengths to LengthInterpolationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add composition tests Created 5 years, 3 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 width: 100px; 5 width: 100px;
6 overflow: visible; 6 overflow: visible;
7 } 7 }
8 .target { 8 .target {
9 background-color: black; 9 background-color: black;
10 width: 10px; 10 width: 10px;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 assertNoInterpolation({ 57 assertNoInterpolation({
58 property: 'width', 58 property: 'width',
59 from: 'unset', 59 from: 'unset',
60 to: '40px', 60 to: '40px',
61 }); 61 });
62 62
63 assertInterpolation({ 63 assertInterpolation({
64 property: 'width', 64 property: 'width',
65 from: '0px', 65 from: '0px',
66 to: '100px' 66 to: '100px',
67 }, [ 67 }, [
68 {at: -0.3, is: '0px'}, // CSS width can't be negative. 68 {at: -0.3, is: '0px'}, // CSS width can't be negative.
69 {at: 0, is: '0px'}, 69 {at: 0, is: '0px'},
70 {at: 0.3, is: '30px'}, 70 {at: 0.3, is: '30px'},
71 {at: 0.6, is: '60px'}, 71 {at: 0.6, is: '60px'},
72 {at: 1, is: '100px'}, 72 {at: 1, is: '100px'},
73 {at: 1.5, is: '150px'} 73 {at: 1.5, is: '150px'}
74 ]); 74 ]);
75
75 assertInterpolation({ 76 assertInterpolation({
76 property: 'width', 77 property: 'width',
77 from: '10px', 78 from: '10px',
78 to: '100%' 79 to: '100%'
79 }, [ 80 }, [
80 {at: -0.3, is: '0px'}, // CSS width can't be negative. 81 {at: -0.3, is: '0px'}, // CSS width can't be negative.
81 {at: 0, is: '10px'}, 82 {at: 0, is: '10px'},
82 {at: 0.3, is: '37px'}, 83 {at: 0.3, is: '37px'},
83 {at: 0.6, is: '64px'}, 84 {at: 0.6, is: '64px'},
84 {at: 1, is: '100px'}, 85 {at: 1, is: '100px'},
85 {at: 1.5, is: '145px'} 86 {at: 1.5, is: '145px'}
86 ]); 87 ]);
87 </script> 88 </script>
88 </body> 89 </body>
OLDNEW
« no previous file with comments | « LayoutTests/animations/interpolation/height-interpolation.html ('k') | Source/core/animation/LengthInterpolationType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698