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

Unified Diff: third_party/WebKit/ManualTests/animation/compositor-transform-fill-forwards-with-motion-path.html

Issue 2841863005: CSS Motion Path: delete implementation of motion-offset property (Closed)
Patch Set: ManualTests Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/ManualTests/animation/compositor-transform-fill-forwards-with-motion-path.html
diff --git a/third_party/WebKit/ManualTests/animation/compositor-transform-fill-forwards-with-motion-path.html b/third_party/WebKit/ManualTests/animation/compositor-transform-fill-forwards-with-motion-path.html
index 3710020143097d4e89b11650f24e6718fd0a8a15..3aad5968db51cb782d4f55974af1bb5967185996 100644
--- a/third_party/WebKit/ManualTests/animation/compositor-transform-fill-forwards-with-motion-path.html
+++ b/third_party/WebKit/ManualTests/animation/compositor-transform-fill-forwards-with-motion-path.html
@@ -15,12 +15,14 @@ div {
left: 100px;
top: 200px;
offset-path: path('m 0 0 h 400');
+ transform-origin: 0px 0px;
}
#div2 {
z-index: 3;
left: 100px;
top: 300px;
+ transform-origin: 0px 0px;
}
</style>
@@ -40,8 +42,8 @@ var div2 = document.getElementById('div2');
function startAnimations() {
div1.animate([
- {motionOffset: '0%'},
- {motionOffset: '100%'}
+ {offsetDistance: '0%'},
+ {offsetDistance: '100%'}
], {
duration: 1000,
delay: 1000,
@@ -65,11 +67,11 @@ function startAnimations() {
fill: 'forwards'
});
setTimeout(function() {
- div2.style.motionPath = 'path("m 0 0 h -400")';
- div2.style.motionRotation = '0deg';
+ div2.style.offsetPath = 'path("m 0 0 h -400")';
+ div2.style.offsetRotate = '0deg';
div2.animate([
- {motionOffset: '0%'},
- {motionOffset: '100%'}
+ {offsetDistance: '0%'},
+ {offsetDistance: '100%'}
], {
duration: 1000,
fill: 'forwards'

Powered by Google App Engine
This is Rietveld 408576698