blob: 389802b5778edaadaee90da30bbbd65d7624b717 (
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
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Forms a containing block for fixed/absolute</title>
<link rel="author" href="mailto:masonf@chromium.org">
<p>Expected: one green square and one red square, both 200px by 200px.</p>
<div class="container">
<div class="fixed-child"></div>
<div class="absolute-child"></div>
</div>
<style>
.container {
width: 200px;
will-change: transform;
}
.fixed-child {
position: fixed;
top: 0;
background-color: green;
width: 200px;
height: 200px;
}
.absolute-child {
position: absolute;
top: 0;
left: 210px;
background-color: red;
width: 200px;
height: 200px;
}
</style>
|