blob: ec38bb4982ab26f00aff67f53005ede3fc0686ff [file] [log] [blame]
<!DOCTYPE HTML>
<style>
canvas {
width: 40px;
height: 40px;
background: blue;
position: absolute;
top: 80px;
left: 10px;
}
#background {
width: 100px;
height: 100px;
background: green;
position: absolute;
will-change: transform;
}
#overlap {
width: 10px;
height: 10px;
background: grey;
position: absolute;
top: 20px;
}
</style>
<div id="background"></div>
<div id="overlap"></div>
<canvas></canvas>