summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/gradients/crash-on-remove.html
blob: ab108a603a0d1670a9510cf3a277255355485815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<p>
    Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=18879">https://bugs.webkit.org/show_bug.cgi?id=18879</a>
    Reproducible crash when removing a gradient</i>.
</p>
<p>
    The test should not crash and there should be a green square below.
</p>
<div id="target" style="width: 100px; height: 100px; background-color: green; background-image: -webkit-gradient(linear, left top, left bottom, from(red), to(transparent))">
</div>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    document.body.offsetTop;
    document.getElementById("target").style.removeProperty("background-image");
</script>