<!DOCTYPE html>
<style>
  div {
    width: 500px;
    height: 500px;
    border: 1px solid black;
  }

  .container {
    perspective: 1px;
  }

  .box {
    background-color: red;
    transform: translateZ(-2px)
  }
</style>

<div class="container">
  <div class="box"></div>
</div>
