2008-11-04 Anders Carlsson <andersca@apple.com>
[webkit/qt.git] / LayoutTests / fast / gradients / crash-on-remove.html
blob839c24c6e8596dfe7adbfd97a44b55865ce63081
1 <p>
2 Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=18879">https://bugs.webkit.org/show_bug.cgi?id=18879</a>
3 Reproducible crash when removing a gradient</i>.
4 </p>
5 <p>
6 The test should not crash and there should be a green square below.
7 </p>
8 <div id="target" style="width: 100px; height: 100px; background-color: green; background-image: -webkit-gradient(linear, left top, left bottom, from(red), to(transparent))">
9 </div>
10 <script>
11 if (window.layoutTestController)
12 layoutTestController.dumpAsText();
14 document.body.offsetTop;
15 document.getElementById("target").style.removeProperty("background-image");
16 </script>