blob: b182b3ed13927d7366cf8a757862f1c552c5b5a4 [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 src="../../resources/run-after-layout-and-paint.js"></script>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
runAfterLayoutAndPaint(function() {
document.getElementById("outer").style.removeProperty("z-index");
document.getElementById("inner").style.display = "none";
if (window.testRunner)
testRunner.notifyDone();
});
</script>