<!DOCTYPE html>
<html>
<head>
<title>Bug 1114329 testcase</title>
<style>
 .vrl {
   writing-mode: vertical-rl;
   -webkit-writing-mode: vertical-rl;
   writing-mode: tb-rl;
}
</style>
</head>
<body dir=rtl>
  <div style="height:0px;width:0px;overflow:visible">
    <div style="height:100px;width:120px;background:rgba(0,255,0,0.8);display:inline-block;"></div>
  </div>
  <div style="height:0px;width:0px;overflow:visible">
    <div style="height:100px;width:150px;background:rgba(255,0,0,0.8);display:inline-block;margin-top:100px;"></div>
  </div>
  <div style="height:0px;width:0px;overflow:visible">
    <div dir=ltr class="vrl" style="background:silver; height: calc(100vh - 16px);">
      <div style="margin-top:200px;">This text should appear BELOW the green and red blocks.</div>
    </div>
  </div>
</body>
</html>