summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/squashing/overflow-scroll-grandchildren-expected.html
blob: eca72407bbd7d38adfe1de703602a940fe4e6235 (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
<!DOCTYPE html>
<style>
  #container {
    width: 300px;
    height: 300px;
    border: 1px solid black;
    overflow: scroll;
  }

  #overlapper {
    position: fixed;
    background-color: red;
    width: 50px;
    height: 200px;
    left: 20px;
    top: 20px;
  }

  #subcontainer {
    height: 500px
  }

  .child {
    position: relative;
    top: 5px;
    left: 5px;
    background-color: green;
    height: 35px;
    width: 35px;
    margin: 50px;
  }

  .grandchild {
    position: relative;
    top: 5px;
    left: 5px;
    background-color: blue;
    height: 10px;
    width: 10px;
  }
</style>

<div id="overlapper"></div>
<div id="container">
  <div id="subcontainer">
    <div class="child">
      <div class="grandchild"></div>
    </div>
    <div class="child">
      <div class="grandchild"></div>
    </div>
  </div>
</div>
<script>
var container = document.getElementById("container");
container.scrollTop = 65;
</script>