<title>Testcase, bug 466395</title>
<div style="overflow:hidden;height:500px;width:500px">
  <div style="display: inline-block; height: 10px">
    &nbsp;hello
    <div style="height: 10000px"></div>
    goodbye
  </div>
</div>