Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / web-animations-api / player-cancel-invalidates-style.html
bloba78264f1e929cb976b85287223b559c71c069830
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
5 <div id="target"></div>
6 <script>
7 test(function() {
8 var initial = getComputedStyle(target).background;
9 var player = target.animate([{background: 'blue'}, {background: 'green'}], 1000);
10 assert_not_equals(getComputedStyle(target).background, initial);
11 player.cancel();
12 assert_equals(getComputedStyle(target).background, initial);
13 }, "cancel() should cause effect to be cleared");
14 </script>