summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/961887-3.html
blob: b70f03a1881804fadc5dd5df61d9ce0bdb1bd929 (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>
<html lang="en">
<meta charset="utf-8">
<title>Test container background searching with clipped display items</title>

<style>

div {
  box-sizing: border-box;
  width: 200px;
  height: 200px;
  margin-bottom: -200px;
}

#outer {
  background-color: red;
}

#container {
  will-change: opacity;
}

#backgroundCover {
  background-color: lime;
}

#roundedClip {
  overflow: hidden;
  border-radius: 20px;
}

#clippedItem {
  background-color: lime;
}

#separatePaintedLayer {
  position: sticky;
  border: 1px solid lime;
}

</style>

<div id="outer">
  <div id="container">
    <div id="backgroundCover"></div>
    <div id="roundedClip">
      <div id="clippedItem"></div>
    </div>
    <div id="separatePaintedLayer"></div>
  </div>
</div>