blob: 46945c328287bcd6c700122d0812ec43bdeb9a38 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
.container {
position: relative;
z-index: 1;
padding: 10px;
width: 400px;
height: 400px;
border: 1px solid black;
}
input, textarea {
position: absolute;
border-style: none;
outline: 0;
height: 20px;
width: 200px;
background: silver;
}
.composited {
position: absolute;
left: 10px;
width: 20px;
height: 100%;
-webkit-transform: translateZ(0);
background-color: #eee;
}
</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="container">
<div class="composited"></div>
<input type="text" style="top: 10px"></input>
<textarea style="top: 50px"></textarea>
</div>
<pre id="layers">Layer tree goes here in DRT</pre>
</body>
</html>