<!DOCTYPE html>
<html>
<head>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<style type="text/css" media="screen">
iframe {
border: 10px solid black;
padding: 5px;
height: 150px;
width: 300px;
-webkit-box-shadow: 0 0 20px black;
}
.box {
height: 200px;
width: 200px;
margin: 10px;
padding: 5px;
background-color: blue;
transform: translateZ(1px);
overflow:hidden;
}
.box:hover {
transform: none;
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function doTest()
{
runAfterLayoutAndPaint(function() {
var div = document.getElementById('invisible');
div.style.cssText = "";
if (window.testRunner) {
document.getElementById('layers').innerHTML = internals.layerTreeAsText(document);
testRunner.notifyDone();
}
});
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<!-- The nested iframe should appear when we remove "display:none". -->
<div id="invisible" style="display:none;">
<iframe src="resources/intermediate-frame.html"></iframe>
</div>
<div class="box">
</div>
<pre id="layers">Layer tree appears here in DRT.</pre>
</body>
</html>