Git init
[framework/web/webkit-efl.git] / LayoutTests / fast / images / animated-background-image-crash.html
1 <html>
2 <head>
3     <title></title>
4     <style>
5         div {
6             width: 40px;
7             height: 40px;
8             background: url(resources/animated.gif) top left no-repeat,
9                         url(resources/animated2.gif) bottom right no-repeat;
10         }
11     </style>
12     <script>
13         function step2()
14         {
15             if (window.layoutTestController)
16                 layoutTestController.notifyDone();
17         }
18
19         function step1()
20         {
21             if (window.layoutTestController)
22                 layoutTestController.display();
23             document.getElementById("target").style.display="none";
24             document.body.offsetTop;
25             setTimeout("step2()", 200);
26         }
27
28         function test()
29         {
30             if (window.layoutTestController) {
31                 layoutTestController.dumpAsText();
32                 layoutTestController.waitUntilDone();
33             }
34             setTimeout("step1()", 100);
35         }
36     </script>
37 </head>
38 <body onload="test()">
39     <p>
40         Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=12487">http://bugs.webkit.org/show_bug.cgi?id=12487</a>
41         REGRESSION: Repro crash when a second background image is animated</i>.
42     </p>
43     <p>
44         This test should not make Safari crash.
45     </p>
46     <div id="target"></div>
47 </body>
48 </html>