blob: c40e8bc09832ec6d30daa6803e98baa3141c9efe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Basic operation of filter with opacity</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match" href="backdrop-filter-basic-opacity-2-ref.html">
<div>
<p>Expected: Just a single grey box.</p>
</div>
<div class="box colorbox"></div>
<div class="box filterbox"></div>
<style>
.box {
position: absolute;
width: 100px;
height: 100px;
left: 10px;
top: 100px;
}
.colorbox {
background: green;
}
.filterbox {
backdrop-filter: invert(1);
opacity: 0.5;
/* An invert backdrop-filter with opacity 0.5 should always give a grey
result. It will always mix the background color with its inverse, in
equal proportion.*/
}
</style>
|