summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/fixed-overlaps-absolute-in-clip.html
blob: 206680c8bcab22b2fba88dd83a0bfd6b58e6e3b7 (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>
<style>
#absolute {
    position: absolute;
    background-color: chartreuse;
    top: 100px;
    left: 100px;
    width: 200px;
    height: 200px;
    clip: rect(0, 200px, 20px, 0px);
}
#fixed {
    position: fixed;
    top: 50px;
    left: 50px;
    background-color: salmon;
    width: 100px;
    height: 100px;
}
#overlap {
    position:absolute;
    background-color: pink;
    top: 0;
    left: 0;
    height: 75px;
    width: 75px;
    transform: translateZ(0);
}
</style>
<div id="overlap"></div>
<div id="absolute">
    <div id="fixed"></div>
</div>