5 #content { -webkit-flow-into: flow; }
6 #region { -webkit-flow-from: flow; position: absolute; bottom: 0px; right: 0px; width: 100px; background-color: green; min-height: 200px; }
7 #reference { position: absolute; bottom: 0px; right: 0px; width: 100px; background-color: red; height: 200px; }
10 <script src="../../../resources/check-layout.js"></script>
11 <body onload="checkLayout('#region')">
12 <p>Test that an auto-height region, absolutely positioned with bottom 0, is correctly sized and positioned when the region has min-height defined.</p>
13 <p>On success you should see PASS below and a green rectangle in the lower right corner.</p>
15 <div style="width: 100px; height: 50px;"></div>
16 <div style="width: 100px; height: 50px;"></div>
17 <div style="width: 100px; height: 50px;"></div>
21 <div id="region" data-total-y=0></div>
23 var referenceOffsetTop = document.getElementById('reference').offsetTop;
24 document.getElementById("region").setAttribute("data-total-y", referenceOffsetTop);