blob: 711b783a8f74bc311a8908bc492ba60c0007d538 [file] [log] [blame]
<!DOCTYPE html>
<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);
if (window.testRunner)
function dumpLayers()
var layersResult = document.getElementById('layers');
if (window.testRunner)
layersResult.innerText = window.internals.layerTreeAsText(document);
window.addEventListener('load', dumpLayers, false)
<div class="clipping">
This layer should not have backing store.
<div class="box composited"></div>
<div class="clipping" style="margin-top: -10px;">
This layer should have backing store.
<div class="box composited"></div>
<pre id="layers">Layer tree goes here in DRT</pre>