| Index: LayoutTests/compositing/squashing/squash-clipped.html
|
| diff --git a/LayoutTests/compositing/squashing/squash-clipped.html b/LayoutTests/compositing/squashing/squash-clipped.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e1ecb50dab7a77c32e64c9e4ddbdf4fe1d8802e4
|
| --- /dev/null
|
| +++ b/LayoutTests/compositing/squashing/squash-clipped.html
|
| @@ -0,0 +1,72 @@
|
| +<!DOCTYPE html>
|
| +<head>
|
| +<style>
|
| +.composited {
|
| + -webkit-transform: translatez(0);
|
| +}
|
| +
|
| +.box {
|
| + width: 100px;
|
| + height: 100px;
|
| +}
|
| +
|
| +.behind {
|
| + position: absolute;
|
| + z-index: 1;
|
| + top: 100px;
|
| + left: 100px;
|
| + background-color: blue;
|
| +}
|
| +
|
| +.middle {
|
| + position: absolute;
|
| + z-index: 1;
|
| + top: 180px;
|
| + left: 180px;
|
| + background-color: lime;
|
| +}
|
| +
|
| +.middle2 {
|
| + position: absolute;
|
| + z-index: 1;
|
| + top: 260px;
|
| + left: 260px;
|
| + background-color: magenta;
|
| +}
|
| +
|
| +.top {
|
| + position: absolute;
|
| + z-index: 1;
|
| + top: 340px;
|
| + left: 340px;
|
| + background-color: cyan;
|
| +}
|
| +
|
| +.clipper {
|
| + -webkit-transform: translatez(0);
|
| + width: 400px;
|
| + height: 400px;
|
| + background-color: gray;
|
| + overflow: hidden;
|
| +}
|
| +
|
| +div:hover {
|
| + background-color: green;
|
| +}
|
| +
|
| +</style>
|
| +<script>
|
| +if (window.internals)
|
| + internals.settings.setLayerSquashingEnabled(true);
|
| +else
|
| + alert('This test requires window.internals.');
|
| +</script>
|
| +</head>
|
| +<body>
|
| + <div class="clipper">
|
| + <div class="composited box behind"></div>
|
| + <div class="box middle"></div>
|
| + <div class="box middle2"></div>
|
| + <div class="box top"></div>
|
| + </div>
|
| +</body>
|
|
|