66 lines
1.6 KiB
HTML
66 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style type="text/css" media="screen">
|
|
iframe {
|
|
border: 10px solid black;
|
|
padding: 5px;
|
|
margin: 20px;
|
|
height: 150px;
|
|
width: 300px;
|
|
-webkit-box-shadow: 0 0 20px black;
|
|
}
|
|
|
|
.bigger {
|
|
height: 120px;
|
|
width: 400px;
|
|
}
|
|
|
|
.overlay {
|
|
position: absolute;
|
|
width: 50px;
|
|
height: 50px;
|
|
top: 5px;
|
|
left: 5px;
|
|
background-color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
</style>
|
|
<script type="text/javascript" charset="utf-8">
|
|
if (window.testRunner) {
|
|
testRunner.dumpAsText();
|
|
testRunner.waitUntilDone();
|
|
}
|
|
|
|
function doTest()
|
|
{
|
|
// For some reason this delay is required for AppKit to not short-circuit the display.
|
|
window.setTimeout(function() {
|
|
if (window.testRunner)
|
|
testRunner.displayAndTrackRepaints();
|
|
|
|
document.getElementById('parent-iframe').className = 'bigger';
|
|
if (window.testRunner) {
|
|
testRunner.displayAndTrackRepaints();
|
|
document.getElementById('layers').innerHTML = window.internals.layerTreeAsText(document);
|
|
testRunner.notifyDone();
|
|
}
|
|
}, 0);
|
|
}
|
|
|
|
window.addEventListener('load', doTest, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- The parent document may into compositing mode by the iframe. -->
|
|
<iframe id="parent-iframe" src="resources/composited-subframe.html"></iframe>
|
|
|
|
<div class="overlay">
|
|
</div>
|
|
|
|
<pre id="layers">Layer tree appears here in DRT.</pre>
|
|
</body>
|
|
</html>
|