summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/backdrop-filter-isolation-ref.html
blob: fc2bccc36c1143b194c09bed7a3ba566fcca46f6 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Should not filter outside parent stacking context.</title>
<link rel="author" href="mailto:masonf@chromium.org">



<div>
  <p>Expected: Two green boxes overlapped by a yellow box. The overlapped region<br>
  of the right-hand box ONLY should be inverted (pink).</p>
</div>
<div class="box outside">
  <div class="box stacking-context">
    <div class="box filter">
    </div>
  </div>
</div>
<div class="box overlay"></div>
<style>
.box {
  position: absolute;
  width: 100px;
  height: 100px;
  background: green;
}
.outside {
  top: 110px;
  left: 10px;
}
.stacking-context {
  will-change: transform;
  top: 0px;
  left: 120px;
}
.filter {
  width: 160px;
  height: 160px;
  top: 30px;
  left: -90px;
  will-change: transform;
  background: #ff08;
}
.overlay {
  background:#ffc377;
  width:70px;
  height:70px;
  top:140px;
  left:130px;
}
</style>