blob: 8ba5b45999ff53e392569fd4a5365a0254eab4d9 [file] [log] [blame]
<!DOCTYPE html>
<title>CSS Backdrop Filters Animation: Brightness Reference</title>
<link rel="author" title="Mason Freed" href="mailto:masonfreed@chromium.org">
<style>
.square {
position: absolute;
width: 100px;
height: 100px;
top: 100px;
left: 100px;
background: blue;
}
.filt {
position: absolute;
width: 200px;
height: 200px;
top: 50px;
left: 50px;
backdrop-filter: brightness(50%);
}
.greenbox {
position: absolute;
width: 50px;
height: 50px;
top: 75px;
left: 75px;
background: green;
}
</style>
<p>You should see a dark blue rectangle with a green box. Neither black nor blue.</p>
<div class="square"></div>
<div class="filt">
<div class="greenbox"></div>
</div>