Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / scrolling / fractional-scroll-offset-fixed-position-non-composited.html
blobf1477df978f68445b9f67460f25226e1735ab48e
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #settings {
6 width: 100px;
7 height: 100px;
8 position: fixed;
9 top: 10px;
10 z-index:2;
11 background-color:red;
14 #header {
15 width:200px;
16 height:20px;
17 position:fixed;
18 right:100px;
19 top:100px;
20 z-index:3;
21 background-color:green;
23 </style>
24 </head>
26 <script>
27 function runTest()
29 window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
30 window.scrollTo(0, 1.5);
31 document.getElementById('header').innerHTML = "scroll offset is " + window.scrollY;
33 </script>
35 <body style="width:1000px;height:2000px;" onload="runTest()">
36 <div id="settings" >
37 <div id="header">
38 </div>
39 </div>
40 </body>
41 </html>