chromium/third_party/blink/web_tests/compositing/visibility/visibility-composited.html

<!DOCTYPE html>

<html>
<head>
  <style>
    .set {
      position: absolute;
      top: 8px;
    }
    .box {
      height: 100px;
      width: 100px;
      background-color: blue;
    }
    
    .hidden {
      visibility: hidden;
    }

    .container.hidden {
      outline: 4px solid red;
    }

    .visible {
      visibility: visible;
    }
    .should-be-hidden {
      background-color: red !important;
    }
    .should-be-visible {
      background-color: green !important;
    }
    .composited {
      transform: translateZ(1px);
    }
    
    .visible-indicator {
      background-color: green;
    }

    .hidden-indicator {
      background-color: red;
    }
  </style>
</head>
<body>
  <!-- Tests various configurations of visibility:hidden and visible compositing layers. -->
  <!-- You should see a green vertical bar, with no red. -->
  <div class="set">
    <div class="visible-indicator box"></div>
    <div class="visible-indicator box"></div>
    <div class="hidden-indicator box"></div>
  </div>

  <div class="set">
    <div class="container">
      <div class="hidden composited box should-be-hidden">
      </div>
    </div>

    <div class="hidden container">
      <div class="composited box should-be-hidden">
      </div>
    </div>

    <div class="hidden container">
      <div class="visible composited box should-be-visible">
      </div>
    </div>
  </div>
</body>
</html>