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

Side by Side Diff: LayoutTests/animations/keyframes-cssom-change-name-updates-animation.html

Issue 814083003: Update animation when changes in animation keyframes are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + Address comments Created 5 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 | LayoutTests/animations/keyframes-cssom-updates-animation.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <style>
5 @keyframes anim {
6 0% { left: 100px; }
7 100% { left: 100px; }
8 }
9
10 #target {
11 animation: anim 1s paused;
12 left: 0px;
13 }
14
15 </style>
16 <div id="target"></div>
17 <script>
18 test(function() {
19 var sheet = document.styleSheets[0];
20 var rules = sheet.rules;
21 var keyframes = rules[0];
22
23 assert_equals(parseInt(getComputedStyle(target).left), 100, 'left offset');
24 keyframes.name = 'foobar';
25 assert_equals(parseInt(getComputedStyle(target).left), 0, 'left offset');
26 keyframes.name = 'anim';
27 assert_equals(parseInt(getComputedStyle(target).left), 100, 'left offset');
28
29 }, "Check that changes to @keyframes name updates the animating element accord ingly");
30 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/keyframes-cssom-updates-animation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698