summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-fixed-position-non-composited.html
blob: f1477df978f68445b9f67460f25226e1735ab48e (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
<!DOCTYPE html>
<html>
<head>
<style>
#settings {
  width: 100px;
  height: 100px;
  position: fixed;
  top: 10px;
  z-index:2;
  background-color:red;
}

#header {
  width:200px;
  height:20px;
  position:fixed;
  right:100px;
  top:100px;
  z-index:3;
  background-color:green;
}
</style>
</head>

<script>
function runTest()
{
  window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
  window.scrollTo(0, 1.5);
  document.getElementById('header').innerHTML = "scroll offset is " + window.scrollY;
}
</script>

<body style="width:1000px;height:2000px;" onload="runTest()">
<div id="settings"  >
 <div id="header">
    </div>
</div>
</body>
</html>