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

Side by Side Diff: LayoutTests/animations/interpolation/object-position-interpolation.html

Issue 1325783004: Changed CSSPropertyObjectPosition to use legacy interpolation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review feedback 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
« no previous file with comments | « no previous file | Source/core/animation/StringKeyframe.cpp » ('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 .parent { 4 .parent {
5 object-position: 30px 10px; 5 object-position: 30px 10px;
6 } 6 }
7 .target { 7 .target {
8 position: relative; 8 position: relative;
9 width: 100px; 9 width: 100px;
10 height: 100px; 10 height: 100px;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 property: 'object-position', 122 property: 'object-position',
123 from: 'center', 123 from: 'center',
124 to: 'top right' 124 to: 'top right'
125 }, [ 125 }, [
126 {at: -0.3, is: '35% 65%'}, 126 {at: -0.3, is: '35% 65%'},
127 {at: 0, is: '50% 50%'}, 127 {at: 0, is: '50% 50%'},
128 {at: 0.5, is: '75% 25%'}, 128 {at: 0.5, is: '75% 25%'},
129 {at: 1, is: '100% 0%'}, 129 {at: 1, is: '100% 0%'},
130 {at: 1.5, is: '125% -25%'} 130 {at: 1.5, is: '125% -25%'}
131 ]); 131 ]);
132
133 assertInterpolation({
134 property: 'object-position',
135 from: 'center',
136 to: 'right bottom 100%',
137 }, [
138 {at: -0.5, is: '25% 75%'},
139 {at: 0, is: 'center'},
140 {at: 0.3, is: '65% 35%'},
141 {at: 0.5, is: '75% 25%'},
142 {at: 0.9, is: '95% 5%'},
143 {at: 1, is: 'right bottom 100%'},
144 {at: 1.5, is: '125% -25%'},
145 {at: 2, is: '150% -50%'},
146 ]);
132 </script> 147 </script>
133 </body> 148 </body>
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/StringKeyframe.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698