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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/keyframes-style-declaration-updates-animation.html

Issue 1649663002: Make CSS Animations responsive to changes to their keyframe offsets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSKeyframeRule.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 <script src="../resources/testharness.js"></script> 2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script> 3 <script src="../resources/testharnessreport.js"></script>
4 <style> 4 <style>
5 @keyframes anim { 5 @keyframes anim {
6 0% { left: 0px; } 6 0% { left: 0px; }
7 50% { left: 500px; } 7 50% { left: 500px; }
8 100% { left: 100px; } 8 100% { left: 100px; }
9 } 9 }
10 10
(...skipping 28 matching lines...) Expand all
39 assert_equals(getComputedStyle(target2).backgroundColor, 'rgb(160, 80, 40)') ; 39 assert_equals(getComputedStyle(target2).backgroundColor, 'rgb(160, 80, 40)') ;
40 40
41 keyframe.style.removeProperty('background-color'); 41 keyframe.style.removeProperty('background-color');
42 assert_equals(getComputedStyle(target1).backgroundColor, 'rgb(0, 0, 0)'); 42 assert_equals(getComputedStyle(target1).backgroundColor, 'rgb(0, 0, 0)');
43 assert_equals(getComputedStyle(target2).backgroundColor, 'rgb(0, 0, 0)'); 43 assert_equals(getComputedStyle(target2).backgroundColor, 'rgb(0, 0, 0)');
44 44
45 keyframe.style.left = '200px'; 45 keyframe.style.left = '200px';
46 assert_equals(parseInt(getComputedStyle(target1).left), 120, 'left offset'); 46 assert_equals(parseInt(getComputedStyle(target1).left), 120, 'left offset');
47 assert_equals(parseInt(getComputedStyle(target2).left), 180, 'left offset'); 47 assert_equals(parseInt(getComputedStyle(target2).left), 180, 'left offset');
48 48
49 keyframe.style.left = '500px';
50 keyframe.keyText = '20%'; 49 keyframe.keyText = '20%';
51 assert_equals(parseInt(getComputedStyle(target1).left), 450, 'left offset'); 50 assert_equals(parseInt(getComputedStyle(target1).left), 187, 'left offset');
52 assert_equals(parseInt(getComputedStyle(target2).left), 300, 'left offset'); 51 assert_equals(parseInt(getComputedStyle(target2).left), 150, 'left offset');
53 52
54 }, "Check that changes to keyframe style declarations update the animation acc ordingly"); 53 }, "Check that changes to keyframe style declarations update the animation acc ordingly");
55 </script> 54 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSKeyframeRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698