<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> |