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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/keyword-composition-crash.html

Issue 1720403002: Alternative syntax for element.animate list of keyframes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@animations-keyframeeffect-api
Patch Set: Change to error types and how offset/composite are handled, plus minor fixes Created 4 years, 9 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(() => { 5 test(() => {
6 target.animate({position: 'absolute'}, {fill: 'forwards'}); 6 target.animate([{position: 'absolute'}], {fill: 'forwards'});
7 target.animate({position: 'static', composite: 'add'}, {fill: 'forwards'}); 7 target.animate([{position: 'static', composite: 'add'}], {fill: 'forwards'});
8 getComputedStyle(target).position; 8 getComputedStyle(target).position;
9 }, "Don't crash when compositing keyword animations."); 9 }, "Don't crash when compositing keyword animations.");
10 </script> 10 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698