OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <script type="text/javascript"> | |
3 function go() { | |
4 if (window.testRunner) { | |
5 testRunner.waitUntilDone(); | |
6 } | |
7 // Wait a couple of frames for the animation inside the iframe to progress. | |
8 requestAnimationFrame(function() { | |
9 requestAnimationFrame(function() { | |
10 var iframe = document.getElementById("iframe"); | |
11 iframe.style.display = "block"; | |
12 var innerDoc = iframe.contentDocument; | |
13 var target = innerDoc.getElementById('target'); | |
14 | |
15 // If the animation has been running, then we expect "left" to be | |
16 // non-zero. | |
17 if (parseInt(getComputedStyle(target).left, 10) == 0) | |
18 document.write("PASS"); | |
19 else | |
20 document.write("FAIL"); | |
21 if (window.testRunner) { | |
22 testRunner.dumpAsText(); | |
23 testRunner.notifyDone(); | |
24 } | |
25 }); | |
26 }); | |
27 }; | |
28 </script> | |
29 <body onload="go()"> | |
30 <p> | |
31 Tests that children of a display:none iframe do not run animations. | |
32 </p> | |
33 <iframe id="iframe" style="display:none" src="resources/frame_with_animation.h
tml"></iframe> | |
34 </body> | |
OLD | NEW |