26 lines
899 B
HTML
26 lines
899 B
HTML
<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’s and its stacking context’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>
|