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

Side by Side Diff: third_party/WebKit/ManualTests/animation/compositor-transform-halted-by-motion-path.html

Issue 2841863005: CSS Motion Path: delete implementation of motion-offset property (Closed)
Patch Set: ManualTests Created 3 years, 7 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 5
6 div { 6 div {
7 position: absolute; 7 position: absolute;
8 height: 90px; 8 height: 90px;
9 width: 90px; 9 width: 90px;
10 background: blue; 10 background: blue;
11 } 11 }
12 12
13 #div1 { 13 #div1 {
14 z-index: 1; 14 z-index: 1;
15 left: 100px; 15 left: 100px;
16 top: 200px; 16 top: 200px;
17 transform-origin: 0px 0px;
17 } 18 }
18 19
19 #div2 { 20 #div2 {
20 z-index: 3; 21 z-index: 3;
21 left: 100px; 22 left: 100px;
22 top: 300px; 23 top: 300px;
24 transform-origin: 0px 0px;
23 } 25 }
24 26
25 </style> 27 </style>
26 </head> 28 </head>
27 <body> 29 <body>
28 <p> 30 <p>
29 Tests that motion path animations stop an existing transform animation from bein g composited. 31 Tests that motion path animations stop an existing transform animation from bein g composited.
30 <p> 32 <p>
31 The two squares should make equivalent movements from left to right and back to left. They need not be perfectly in time. 33 The two squares should make equivalent movements from left to right and back to left. They need not be perfectly in time.
32 34
(...skipping 15 matching lines...) Expand all
48 }); 50 });
49 51
50 div2.animate([ 52 div2.animate([
51 {transform: 'translate(0px)'}, 53 {transform: 'translate(0px)'},
52 {transform: 'translate(800px)'} 54 {transform: 'translate(800px)'}
53 ], { 55 ], {
54 duration: 2000, 56 duration: 2000,
55 delay: 1000 57 delay: 1000
56 }); 58 });
57 setTimeout(function() { 59 setTimeout(function() {
58 div2.style.motionPath = 'path("m 0 0 h -800")'; 60 div2.style.offsetPath = 'path("m 0 0 h -800")';
59 div2.style.motionRotation = '0deg'; 61 div2.style.offsetRotate = '0deg';
60 div2.animate([ 62 div2.animate([
61 {motionOffset: '0%'}, 63 {offsetDistance: '0%'},
62 {motionOffset: '100%'} 64 {offsetDistance: '100%'}
63 ], { 65 ], {
64 duration: 1000 66 duration: 1000
65 }); 67 });
66 }, 2000); 68 }, 2000);
67 } 69 }
68 70
69 requestAnimationFrame(startAnimations); 71 requestAnimationFrame(startAnimations);
70 72
71 </script> 73 </script>
72 74
73 </body> 75 </body>
74 </html> 76 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698