blob: 7442f11de07d2bd239690b1d89d8dff40f049525 [file] [log] [blame]
<!DOCTYPE HTML>
<!--
This test ensures that reparented overlay scrollbars still respect
clips applied by a tree-order ancestor, even if that ancestor is
not an ancestor in the compositing layer tree.
-->
<script>
if (window.internals) {
internals.useMockOverlayScrollbars();
internals.settings.setPreferCompositingToLCDTextEnabled(true);
}
</script>
<style>
#clipper {
overflow: hidden;
width: 400px;
height: 100px;
margin: 10px;
}
#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>
<div id='clipper'>
<div id='scroller'>
<div id='fixed'></div>
<div id='scrolled'></div>
</div>
</div>