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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/retain-zero-percent.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 <script src="../resources/testharness.js"></script> 1 <script src="../resources/testharness.js"></script>
2 <script src="../resources/testharnessreport.js"></script> 2 <script src="../resources/testharnessreport.js"></script>
3 <div id="target"></div> 3 <div id="target"></div>
4 <script> 4 <script>
5 test(function() { 5 test(function() {
6 var animation = target.animate([{motionOffset: '-1%'}, {motionOffset: '1%'}], 1); 6 var animation = target.animate([{offsetDistance: '-1%'}, {offsetDistance: '1%' }], 1);
7 animation.pause(); 7 animation.pause();
8 animation.currentTime = 0.5; 8 animation.currentTime = 0.5;
9 assert_equals(getComputedStyle(target).motionOffset, '0%'); 9 assert_equals(getComputedStyle(target).offsetDistance, '0%');
10 }); 10 });
11 </script> 11 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698