blob: f0e913e58e98601faf5ff17eb2ebf794eb2c771b [file] [edit]
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<style>
.container {
overflow: hidden;
position: relative;
margin: 20px;
height: 50px;
width: 50px;
border: 1px solid black;
}
.inner {
height: 1000px;
width: 100%;
position: absolute;
}
button {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div class="container">
<div class="inner">
<button>Hi</button>
</div>
</div>
<pre id="results"></pre>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.onload = function () {
if (window.internals)
results.textContent = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_EVENT_REGION | internals.LAYER_TREE_INCLUDES_ROOT_LAYER_PROPERTIES);
};
</script>
</body>
</html>