<!DOCTYPE html>
<div style="height: 200px">Passes if this text is fully visible, and only a green square below.</div>
</div>
<div style="display: -webkit-box">
<div style="position: absolute; background: red; width: 100px; height: 100px"></div>
<div id="target" style="position: relative; float: left; background: green; width: 100px; height: 100px"></div>
</div>