| <!doctype html> |
| <html> |
| <head> |
| <style> |
| .flowContent { font-size: 50px; color: green; font-family: Ahem; } |
| #article { -webkit-flow-into: flow; } |
| |
| .regionSize { width: 250px; } |
| #region { -webkit-flow-from: flow; -webkit-region-fragment: break; position: absolute; top: 150px; min-height: 150px; background-color: green; } |
| |
| .redBox { position: absolute; height: 150px; background-color: red; } |
| #red { top: 150px; } |
| |
| #p2 { -webkit-region-break-before: always; } |
| </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 (break before) but also a min-height value (bigger than the break offset) that is used to determine the region height.</p> |
| <p>On success, you should see 1 green rectangle.</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" class="regionSize"></div> |
| </body> |
| </html> |