5 .container { position: relative; width: 100px; height: 100px; border: 1px solid red; }
6 .region { -webkit-flow-from: flow; position: absolute; border: 1px solid green; }
7 .anchoredVertically { top: 0px; bottom: 0px; }
8 .anchoredHorizontally { left: 0px; right: 0px; }
10 #region2 { width: 50px; }
11 #region4 { height: 50px; }
14 <script src="../../../resources/check-layout.js"></script>
15 <body onload="checkLayout('.region')">
16 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=102385"> [CSS Regions] Absolutely positioned regions do not expand to fill their container</a>.</p>
17 <p>On success, you should not see FAIL below.</p>
18 <div class="container">
19 <div id="region1" class="region anchoredVertically" data-expected-height=100></div>
22 <div class="container">
23 <div id="region2" class="region anchoredVertically" data-expected-height=100></div>
26 <div class="container">
27 <div id="region3" class="region anchoredHorizontally" data-expected-width=100></div>
30 <div class="container">
31 <div id="region4" class="region anchoredHorizontally" data-expected-width=100></div>
34 <div class="container">
35 <div id="region5" class="region anchoredHorizontally anchoredVertically" data-expected-width=100 data-expected-height=100></div>