blob: 0ba49a87b4e3887fce0557e5c1dcb2325f039d2d [file] [log] [blame]
<!DOCTYPE HTML>
<!--
This test ensures that the offset from renderer is correctly applied
to reparented overflow controls, even if they are unclipped.
-->
<style>
#scroller {
overflow: scroll;
width: 300px;
height: 300px;
position: relative;
top: 10px;
}
#fixed {
position: fixed;
background: blue;
left: 90px;
width: 10px;
height: 10px;
}
#scrolled {
position: relative;
background: green;
width: 80px;
height: 500px;
}
</style>
<script>
if (window.internals) {
internals.runtimeFlags.overlayScrollbarsEnabled = true;
internals.settings.setPreferCompositingToLCDTextEnabled(true);
}
</script>
<div id='scroller'>
<div id='fixed'></div>
<div id='scrolled'></div>
</div>