blob: d9b9f9f1ffb39215d4b9da8d0b689ac2e95d464a [file] [log] [blame]
<!DOCTYPE html>
<style>
#box {
position: absolute;
width: 200px;
height: 200px;
background-color: green;
}
#filter {
position: absolute;
width: 200px;
height: 200px;
transform: translateZ(0);
-webkit-clip-path: circle(80px at 100px);
}
.backdrop {
-webkit-backdrop-filter: invert();
}
</style>
<div id="box"></div>
<div id="filter"></div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
document.getElementById("filter").classList.add("backdrop");
if (window.testRunner)
testRunner.notifyDone();
}, 0);
</script>