2 <script src=
"../resources/js-test.js"></script>
12 animation: flash
0.2s infinite;
25 <div id=
"child"></div>
28 description("Canceling an animation should not leave dirty bits on display none elements.");
30 window
.jsTestIsAsync
= true;
31 if (window
.testRunner
) {
32 testRunner
.waitUntilDone();
33 testRunner
.dumpAsText();
36 var child
= document
.getElementById("child");
37 var container
= document
.getElementById("container");
39 child
.addEventListener("animationstart", function(event
) {
40 container
.style
.display
= "none";
41 child
.style
.borderWidth
= "10px";
42 shouldBeEqualToString("getComputedStyle(child).borderWidth", "10px");
43 child
.style
.borderWidth
= "5px";
44 shouldBeEqualToString("getComputedStyle(child).borderWidth", "5px");
48 child
.classList
.add("animate");