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

Side by Side Diff: LayoutTests/animations/interpolation/transform-origin-interpolation.html

Issue 212483003: CSS Transforms: Implement transform-origin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 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/transform-origin-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 display: inline-block; 5 display: inline-block;
6 margin-top: 50px; 6 margin-top: 50px;
7 margin-bottom: 25px; 7 margin-bottom: 25px;
8 width: 50px; 8 width: 50px;
9 height: 50px; 9 height: 50px;
10 background: red; 10 background: red;
11 -webkit-transform: scale(1.5); 11 -webkit-transform: scale(1.5);
12 transform: scale(1.5); 12 transform: scale(1.5);
13 } 13 }
14 .replica { 14 .replica {
15 background: green; 15 background: green;
16 position: relative; 16 position: relative;
17 left: -50px; 17 left: -50px;
18 } 18 }
19 </style> 19 </style>
20 <body> 20 <body>
21 <script src="resources/interpolation-test.js"></script> 21 <script src="resources/interpolation-test.js"></script>
22 <script> 22 <script>
23 assertInterpolation({ 23 assertInterpolation({
24 property: '-webkit-transform-origin', 24 property: 'transform-origin',
25 from: '0% 50%', 25 from: '0% 50% 5px',
26 to: '100% 150%' 26 to: '100% 150% 0px'
27 }, [ 27 }, [
28 {at: -0.3, is: '-30% 20%'}, 28 {at: -0.3, is: '-30% 20% 6.5px'},
29 {at: 0, is: '0% 50%'}, 29 {at: 0, is: '0% 50% 5px'},
30 {at: 0.3, is: '30% 80%'}, 30 {at: 0.3, is: '30% 80% 3.5px'},
31 {at: 0.6, is: '60% 110%'}, 31 {at: 0.6, is: '60% 110% 2px'},
32 {at: 1, is: '100% 150%'}, 32 {at: 1, is: '100% 150% 0px'},
33 {at: 1.5, is: '150% 200%'} 33 {at: 1.5, is: '150% 200% -2.5px'}
34 ]); 34 ]);
35 </script> 35 </script>
36 </body> 36 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/transform-origin-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698