blob: cc392e819fbdf8ca87ec38c76fb283307a094de4 [file] [log] [blame]
<!doctype html>
<html>
<head>
<style>
.container { position: relative; width: 100px; height: 100px; border: 1px solid red; }
.region { -webkit-flow-from: flow; position: absolute; border: 1px solid green; }
.anchoredVertically { top: 0px; bottom: 0px; }
.anchoredHorizontally { left: 0px; right: 0px; }
#region2 { width: 50px; }
#region4 { height: 50px; }
</style>
</head>
<script src="../../resources/check-layout.js"></script>
<body onload="checkLayout('.region')">
<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>
<p>On success, you should not see FAIL below.</p>
<div class="container">
<div id="region1" class="region anchoredVertically" data-expected-height=100></div>
</div>
<div class="container">
<div id="region2" class="region anchoredVertically" data-expected-height=100></div>
</div>
<div class="container">
<div id="region3" class="region anchoredHorizontally" data-expected-width=100></div>
</div>
<div class="container">
<div id="region4" class="region anchoredHorizontally" data-expected-width=100></div>
</div>
<div class="container">
<div id="region5" class="region anchoredHorizontally anchoredVertically" data-expected-width=100 data-expected-height=100></div>
</div>
</body>
</html>