blob: f58727aeae754d237f965e6b44a6f961a2ef512f [file] [log] [blame]
<!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()
{
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>