blob: 23536f4ee37c15c2b4bbaa2c499b0525d4c2a7f6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that backdrop filter is clipped properly.</title>
<style>
.container {
background-color: red;
color: black;
width: 200px;
height: 200px;
}
.inner {
-webkit-backdrop-filter: invert(1);
clip: rect(5px, 115px, 115px, 5px);
border: 10px solid green;
width: 100px;
height: 100px;
}
</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>
</head>
<body>
<div class=container>foo<div class=inner>bar</div></div>
<pre id=result></pre>
</body>
</html>