blob: 59ec599f08e3b20c64ecaeefebeac9b393a628dc [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Backdrop Filters Animation: Invert</title>
<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match" href="backdrop-filters-invert-ref.html">
<style>
.square {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
background: black;
}
.filt {
backdrop-filter: invert(50%);
position: absolute;
width: 200px;
height: 200px;
top: 50px;
left: 50px;
}
.greenbox {
position: absolute;
width: 50px;
height: 50px;
top: 75px;
left: 75px;
background: green;
}
</style>
<p>You should see a gray rectangle with a green box. Neither black nor white.</p>
<div class="square"></div>
<div class="filt">
<div class="greenbox"></div>
</div>