<!DOCTYPE html>
<style>
    div {
        width: 100px;
        height: 100px;
    }
</style>
<div style="background: green; transform-style: preserve-3d;">
    <div style="background: red; transform: translateZ(-10px);"></div>
</div>
