blob: 505179ed0984bb8b4bb3f99f00d4987d944fac9d [file] [log] [blame]
<!DOCTYPE html>
<style>
.hoverable:hover {
transform: translateZ(0);
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function dumpLayers()
{
var layersResult = document.getElementById('layers');
if (window.testRunner)
layersResult.innerText = window.internals.layerTreeAsText(document);
}
window.addEventListener('load', dumpLayers, false)
</script>
<div style="overflow: hidden; height: 10px; width: 200px; background-color: lightblue">
<div id="inner" style="transform: translateZ(0); height: 10px; background-color: whitesmoke"></div>
</div>
<!-- This div should not sqaush into the inner div, because it is inside an overflow:hidden div which therefore clips differently than this div's parent -->
<div class="hoverable" style="position:absolute; top: 0px; height:100px; width:100px; background-color: lightgreen"></div>
<pre id="layers">Layer tree goes here in DRT</pre>