summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/layer-creation/resources/fixed-position-out-of-view-frame-scroll.html
blob: 1cc74cf210b50c8c8251443ba6f373ac22889f9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
  <style>
    .fixed {
      position: fixed;
      width: 10px;
      height: 10px;
    }
  </style>
</head>
<body onload="window.scrollTo(300, 600)">
  <div style="width: 1500px; height: 1500px"></div>
  <!-- When the size of the frame is 800x600, the first 3 divs are out-of-view and should not be composited, and the last 2 divs should be composited. -->
  <div class="fixed" style="top: -100px"></div>
  <div class="fixed"></div>
  <div class="fixed" style="top: 0px; left: 1000px"></div>
  <div class="fixed" style="top: 0px; left: 600px"></div>
  <div class="fixed" style="top: 0px; left: 0px"></div>
</body>
</html>