blob: 3a9628a92a101aa8869f0e5f31e208d04d63761f [file] [log] [blame]
<style type="text/css">
body {
margin: 0;
overflow: hidden;
.container {
visibility: hidden;
position: absolute;
width: 200px;
height: 200px;
overflow: hidden;
z-index: 0;
.box {
height: 100px;
width: 100px;
.indicator {
position: absolute;
top: 0;
left: 0;
.visible-box {
.composited {
height: 10px;
width: 10px;
pre {
opacity: 0; /* hide in pixel result */
height: 16px; /* avoid platform-dependent height difference of hidden text layer-tree */
if (window.testRunner)
function dumpLayers()
if (window.testRunner)
document.getElementById('layer-tree').innerText = window.internals.layerTreeAsText(document);
window.addEventListener('load', dumpLayers, false);
<!-- You should see a green box in the top left, and no red. -->
<div class="indicator box"></div>
<div class="container">
<div style="position: relative;">
<div style="visibility:visible;">
<div class="visible-box box">
<div class="composited box"></div>
<pre id="layer-tree">Layer tree goes here in DRT</pre>