<!DOCTYPE html>
<html>
<style>
    body { margin: 0; }

    .overlay {
        z-index: 1;
        width: 200px;
        height: 100px;
        background-color: green;
    }
    #not-occlusion {
        pointer-events: none;
        background-color: red;
    }
    #fixed-container {
        position: fixed;
        left: 0;
        bottom: 0;
        pointer-events: none;
    }
    #fixed {
        position: fixed;
        right: 0;
        top: 0;
    }
    .paints {
        width: 200px;
        height: 200px;
        background: blue;
        pointer-events: auto;
    }
    .child {
        width: 50px;
        height: 50px;
        background: red;
    }
</style>
<body>
<div class="overlay"></div>
<div class="overlay" id="not-occlusion"></div>
<div class="overlay" onclick="click()"></div>
<div id="fixed-container">
    <div class="paints">
        <div class="child"></div>
        <div class="child"></div>
    </div>
</div>
<div id="fixed" class="paints"></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>
