<!DOCTYPE html>
<html>
<style>
    body { margin: 0; }
    div {
        position: absolute;
        top: 0;
        left: 50px;
        width: 150px;
        height: 100px;
        background: rgba(255, 0, 0, 0.5);
        border-radius: 12px;
    }
    div:last-child {
        top: 25px;
        left: 100px;
        background: rgba(0, 0, 255, 0.5);
    }
</style>
<body>
<a href="#">
    <div></div>
    <div></div>
</a>

<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>
