blob: 17253ec096adce4ccf32d79b34b92c316f916c55 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.box {
width: 100px;
height: 100px;
}
.red {
background-color: red;
}
.lime {
background-color: lime;
}
.behind {
position: absolute;
top: 100px;
left: 100px;
}
.ontop {
position: absolute;
top: 100px;
left: 100px;
}
#layertree {
position: absolute;
left: 10000px;
top: 0px;
}
body {
overflow: hidden;
}
</style>
</head>
<body>
<!-- This red div should be completely underneath the green div -->
<div class="red box behind"> </div>
<!-- This lime colored div should correctly detect overlap and become composited. -->
<div class="lime box ontop"> </div>
</body>
</html>