blob: 711b783a8f74bc311a8908bc492ba60c0007d538 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
.box {
position: relative;
height: 100px;
width: 100px;
margin: 10px;
left: 0;
top: 0;
background-color: silver;
}
.clipping {
position: relative;
z-index: 0;
width: 300px;
border: 1px solid black;
padding: 20px;
overflow: hidden;
}
.composited {
-webkit-transform: translateZ(0);
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function dumpLayers()
{
var layersResult = document.getElementById('layers');
if (window.testRunner)
layersResult.innerText = window.internals.layerTreeAsText(document);
}
window.addEventListener('load', dumpLayers, false)
</script>
</head>
<body>
<div class="clipping">
This layer should not have backing store.
<div class="box composited"></div>
</div>
<div class="clipping" style="margin-top: -10px;">
This layer should have backing store.
<div class="box composited"></div>
</div>
<pre id="layers">Layer tree goes here in DRT</pre>
</body>
</html>