blob: 76a7f77ed91fbf3a9e8b124b96e0a0cb74405909 [file]
<!DOCTYPE html>
<title>Fixed position elements do establish stacking contexts with setting enabled</title>
<style>
div {
height: 100px;
width: 100px;
margin: 0;
padding: 0;
top: 0;
left: 0;
position:fixed;
}
.green {
position:fixed;
background: green;
z-index: 1;
}
.red {
position:fixed;
background: red;
z-index: 2;
}
</style>
<script>
if ("internals" in window) {
window.internals.settings.setFixedPositionCreatesStackingContext(true);
} else {
document.write("This test depends on the FixedPositionCreatesStackingContext setting being true, so run in DumpRenderTree or manually enable it");
}
</script>
<div class="green"></div>
<div class="container">
<div class="green"></div>
<div class="red"></div>
</div>