summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/squashing/clip-to-squashed-layer-size.html
blob: d27ab48657b32a3d9d63fb7d1c7e3863b87ae591 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<script>
    // Checks that when painting squashed layers, contents are clipped to the size of the squashed layer.
    if (window.internals)
        internals.settings.setLayerSquashingEnabled(true);
</script>
</head>
<body>
  <div style=" width: 1px; height: 100px; transform: translateZ(0px); position:absolute; top:0px; background-color: lightgray">
  </div>
  <div style="width: 10px; height: 10px; overflow: hidden; position: absolute; left: 0px; top: 0px; ">
    <div style="height: 100px; width:100px; background-color:lightgreen" />
    </div>           
  </div>
  <div style="left: 0px; height: 9px; width: 9px; position:absolute; top:99px; background-color: blue">
</body>