blob: 5c634e22ddee605bbe19d73e7a3cb15b9b8dd423 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
iframe {
border: 10px solid black;
padding: 5px;
height: 150px;
width: 300px;
-webkit-box-shadow: 0 0 20px black;
-webkit-transform: translateZ(0);
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function doTest()
{
if (window.testRunner) {
document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document);
testRunner.notifyDone();
}
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<!-- The parent document should be thrown into compositing mode by the iframe. -->
<iframe src="resources/composited-subframe.html"></iframe>
<pre id="layers">Layer tree appears here in DRT.</pre>
</body>
</html>