summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/images/animated-background-image-crash.html
blob: a489bffb1ecdaf11306be221e35ac6077835a253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<html>
<head>
    <title></title>
    <style>
        div {
            width: 40px;
            height: 40px;
            background: url(resources/animated.gif) top left no-repeat,
                        url(resources/animated2.gif) bottom right no-repeat;
        }
    </style>
    <script src="../../resources/run-after-layout-and-paint.js"></script>
    <script>
        function step1()
        {
            document.getElementById("target").style.display="none";
            document.body.offsetTop;
            if (window.testRunner)
                testRunner.notifyDone();
        }

        function test()
        {
            if (window.testRunner) {
                testRunner.dumpAsText();
                testRunner.waitUntilDone();
            }
            runAfterLayoutAndPaint(step1);
        }
    </script>
</head>
<body onload="test()">
    <p>
        Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=12487">http://bugs.webkit.org/show_bug.cgi?id=12487</a>
        REGRESSION: Repro crash when a second background image is animated</i>.
    </p>
    <p>
        This test should not make Safari crash.
    </p>
    <div id="target"></div>
</body>
</html>