 inherit; background: red; position: relative; }
    #parent { position: absolute; top: 2em; }
    #intermediate { display: table-row; }
  </style>
  <script type="text/javascript">
    window.onload = function() {
      document.body.offsetWidth;
      document.getElementById("intermediate").style.top = "2em";
    }
  </script>
 </head>
 <body>
   <p>There should be no red.</p>
   <div id="parent">
     <div id="intermediate">
       <div id="red" class="testDiv"></div>
     </div>
   </div>
   <div id="gr