blob: 4c04078add36ada9995610c3d04a5300711c522b [file] [log] [blame]
<!doctype html>
<html>
<head>
<style>
.flowContent { font-size: 50px; color: green; font-family: Ahem; }
#article { -webkit-flow-into: flow; }
#p1 { -webkit-region-break-after: always; }
.regionSize { width: 250px; }
#region { -webkit-flow-from: flow; -webkit-region-fragment: break; position: absolute; top: 100px; max-height: 100px; }
.redBox { position: absolute; height: 50px; background-color: red; }
#red { top: 150px; }
</style>
</head>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=91097"> Auto height is not working for regions</a>.</p>
<p>The region is a block element. The flow has a forced break inside it but the region has a max-height value less than the position of the forced break.</p>
<p>On success, you should see 1 green line.</p>
<div id="red" class="redBox regionSize"></div>
<div id="article" class="flowContent">
<p id="p1">aaaaa</p>
<p id="p2">aaaaa</p>
<p id="p3">aaaaa</p>
</div>
<div id="region"></div>
</body>
</html>