blob: 7270dea0a2c224d6c02892362200a7740f0a3686 [file] [log] [blame]
<!DOCTYPE html>
<script>
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(true);
</script>
<style>
#overflow-clip {
position: absolute;
z-index: 0;
overflow: scroll;
left: 100px;
top: 100px;
width: 300px;
height: 200px;
background-color: yellow;
}
#bloat {
height: 1000px;
}
#squashing {
position:fixed;
left: 0;
top: 0;
}
#squashed {
position:fixed;
z-index:1;
left: 0;
top: 0;
right: 0;
bottom: 0;
background-color: green;
}
</style>
<div id="overflow-clip">
<div id="bloat"></div>
<div id="squashing">You shouldn't see this line or a yellow block.</div>
</div>
<div id="squashed">
This test suceeds if you only see this line with a green background.
</div>