blob: 6ac48f0b037bf48f23ffac6e6a0659f2b260994e [file] [log] [blame]
<html>
<head>
<style>
#layer {
transform:translateZ(0);
opacity: 0.75;
background-color: rgb(0, 100, 0);
}
#child {
transform:translateZ(0);
}
#base {
background-color: rgb(200, 0, 0);
}
.fullpage {
position: fixed;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="base" class="fullpage"></div>
<div id="layer" class="fullpage">
<!-- layer needs to have a child with content -->
<div id="child"><canvas width="1px" height="1px"></canvas></div>
</div>
</body>
</html>