summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/backdrop-filter-fixed-clip.html
blob: 346fad93f34c1221e6f608619ba9a7ba4fb98494 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Should not filter outside of clip/scroll.</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-fixed-clip-ref.html">

<div style="width:600px;">
  <p>Expected: A green box, overlapping red box, and a small, inset cyan box. The<br>
  cyan should not extend to the bottom/right edges of the red box.</p>
</div>

<div id="A">
  <div id="B">
    <div id="F"></div>
    <div id="T"></div>
  </div>
</div>

<style>
div {
  position:absolute;
  width: 200px;
  height: 200px;
}
#A {
  overflow:hidden;
  top: 110px;
  left: 10px;
}
#B {
  opacity: 0.99999;
  background:green;
}
#F {
  position:fixed;
  background:#f008;
  top:150px;
  left:50px;
}
#T {
  background:#fff8;
  top:90px;
  left:90px;
  backdrop-filter:invert(1);
}
</style>