<!DOCTYPE html>
<html>
<head>
<title>This tests that backdrop filter is sized properly when the compositing layer bounds is different from its renderer's bounds.</title>
<style>
    .outer {
        height: 100px;
        width: 200px;
        background-color: rgba(0, 0, 255, 1);
    }

    .container-background {
        position: relative;
        -webkit-backdrop-filter: invert(1);
        height: 200px;
        width: 100px;
    }

    .child {
	    position: absolute;
	    left: 300px;
	    top: 300px;
    }
</style>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    function dumpLayers() {
        if (window.internals)
            document.getElementById('result').innerText = internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_CONTENT_LAYERS)
    }
    window.addEventListener('load', dumpLayers, false);
</script>
<body>
<div class=outer>
  <div class=container-background>foo
    <div class=child>foobar</div>
  </div>
</div>
<pre id=result></pre>
</body>
