35 lines
913 B
HTML
35 lines
913 B
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style>
|
|
#caption {
|
|
width: 200px;
|
|
height: 100px;
|
|
background-color: green;
|
|
-webkit-transform: translateZ(0);
|
|
}
|
|
|
|
.inner {
|
|
visibility: visible;
|
|
background-color: blue;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
function doTest() {
|
|
document.getElementById("caption").style.visibility = "hidden";
|
|
if (window.testRunner && window.internals)
|
|
document.getElementById('layertree').innerText = window.internals.layerTreeAsText(document);
|
|
}
|
|
window.addEventListener('load', doTest, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div id="caption" style="position: fixed; background: green;">Caption</div>
|
|
<pre id="layertree"></pre>
|
|
</body>
|
|
</html>
|