summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/backdrop-filter-edge-clipping.html
blob: f6f7d89e5bf0faa1a3e29efe8f1bca3f69d9f935 (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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Filter input is at element bounds</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-paint-order-ref.html">

<div>
  <p>Expected: A pure white box with a blue border, surrounded by green.<br>
  No green should be observed within the white box.<br>
  No dark/black should be observed within the white box either.</p>
</div>

<div class="greenbox top"></div>
<div class="greenbox right"></div>
<div class="greenbox bottom"></div>
<div class="filterbox">
  <div class="children" style="top:-31px;left:35px;"></div>
  <div class="children" style="top:101px;left:35px;"></div>
  <div class="children" style="top:35px;left:101px;"></div>
  <div class="children" style="top:35px;left:-31px;"></div>
</div>
<style>
.filterbox {
  position: absolute;
  width: 100px;
  height: 100px;
  top: 150px;
  left: 0px;
  border: 1px solid blue;
  backdrop-filter: blur(20px);
}
.greenbox {
  position:absolute;
  width: 150px;
  height: 50px;
  background: green;
}
.top {
  top:100px;
  left: 10px;
}
.right {
  top:130px;
  left: 102px;
  width: 58px;
  height: 150px;
}
.bottom {
  top:252px;
  left: 10px;
}
.children {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 0px;
  left: 0px;
  background: green;
}
</style>