blob: d69ffe7f61dee30c72693e99772e81857a05bc20 [file] [log] [blame]
<!DOCTYPE html>
<title>'backdrop-filter'</title>
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match" href="backdrop-filter-basic-ref.html">
<div>
<!-- If you include this text, you get layout problems with fonts.
<p>Expected: A red box with three blurred boxes on top of it.</p>
<p>All three should have similar levels of blur and opacity applied.</p>-->
</div>
<div class="colorbox">
<div class="filterbox box1"></div>
<div class="filterbox box2"></div>
<div class="filterbox box3"></div>
</div>
<style>
.colorbox {
width: 200px; height: 200px;
background: red;
position: absolute;
left: 150px;
top: 150px;
}
.filterbox {
display: block;
position: absolute;
left: 100px;
width: 150px;
height: 100px;
margin: 0px auto;
border: 1px solid blue;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
}
.box1 {
top: -50px;
opacity: 0.5;
background: blue;
}
.box2 {
top: 150px;
opacity: 1.0;
}
.box3 {
top: 50px;
left: -100px;
opacity: 0.5;
}
</style>