blob: 92e3370b18949553e37b64ea22626c88cf57f133 [file] [log] [blame]
<p>
Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=23848">https://bugs.webkit.org/show_bug.cgi?id=23848</a> REGRESSION: Crash when mouse cursor moves over a link on www.opportuno.de</i>.
</p>
<p>
This tests that changing the z-index of an inline correctly invalidates its
layer&rsquo;s and its stacking context&rsquo;s z-index lists.
</p>
<span id="outer" style="position: relative; z-index: 100;">
<div id="inner" style="position: absolute; height: 50px; width: 50px; background-color: blue;">
</div>
</span>
<script>
function test()
{
document.getElementById("outer").style.removeProperty("z-index");
document.getElementById("inner").style.display = "none";
}
if (window.testRunner) {
document.body.offsetTop;
testRunner.displayAndTrackRepaints();
test();
} else
setTimeout(test, 0);
</script>