blob: c4274ef4de39ea267be7411422f4e9db1118490d [file] [log] [blame]
<!doctype html>
<html>
<head>
<style>
#article { -webkit-flow-into: flow; }
#box1 { width: 50px; height: 50px; background-color: green; }
#box2 { width: 100px; height: 50px; background-color: green; }
#container { width: 200px; height: 200px; position: absolute; top: 150px; }
#region { -webkit-flow-from: flow; height: 50px; position: absolute; background-color: green; }
#region2 { -webkit-flow-from: flow; height: 50px; position: absolute; top: 100px; background-color: green; }
#red1 { position: absolute; background-color: red; width: 100px; height: 50px; top: 150px; }
#red2 { position: absolute; background-color: red; width: 100px; height: 50px; top: 250px; }
</style>
</head>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=74135"> Auto width is not working for regions</a>.</p>
<p>The regions are absolutely positioned, non replaced element.</p>
<p>In this case, the regions have the same width, based on the same flow thread min/max content.</p>
<p>On success, you should not see a red rectangle below.</p>
<div id="article">
<div id="box1"></div>
<div id="box2"></div>
</div>
<div id="red1"></div>
<div id="red2"></div>
<div id="container">
<div id="region"></div>
<div id="region2"></div>
<div>
</body>
</html>