summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/images/style-access-during-imageChanged-crash.html
blob: f21395055bb67c155abf577768c1cc9e2a6fd930 (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
<style>
    @font-face {
      font-family: test;
      src: url(data:text/plain,1);
    }
</style>
<p>
    This test passes if it does not cause an assertion failure or a crash.
</p>
A <img id="target" alt="A">
<script>
    function test()
    {
        document.body.offsetTop;
        document.body.style.fontFamily="test";
        document.body.offsetTop;
        document.getElementById("target").src = "data:text/plain,2";
    }

    if (window.testRunner)
        testRunner.dumpAsText();

    test();
</script>