| <!doctype html> |
| <html> |
| <head> |
| <style> |
| .flowContent { font-size: 50px; color: green; font-family: Ahem; } |
| #article { -webkit-flow-into: flow; } |
| #p2 { -webkit-region-break-after: always; } |
| |
| .regionSize { width: 250px; } |
| #region { -webkit-flow-from: flow; height: 100px; position: absolute; top: 150px; } |
| #region2 { -webkit-flow-from: flow; position: absolute; top: 150px; background-color: green; left: 300px; } |
| #region3 { -webkit-flow-from: flow; height: 100px; position: absolute; top: 150px; left: 600px; } |
| |
| .redBox { position: absolute; height: 150px; background-color: red; } |
| .redBox2 { position: absolute; height: 50px; background-color: red; } |
| #red { top: 200px; } |
| #red1 { top: 200px; left: 600px; } |
| #red2 { top: 150px; left: 300px; } |
| </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 first region has specified height,the second region is auto-height and the third region has specified height. The height of the second region is determined by the break from the second paragraph.</p> |
| <p>On success, you should see 2 green lines and 1 green rectangle.</p> |
| <div id="red" class="redBox2 regionSize"></div> |
| <div id="red1" class="redBox2 regionSize"></div> |
| <div id="red2" 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> |
| <div id="region2" class="regionSize"></div> |
| <div id="region3" class="regionSize"></div> |
| </body> |
| </html> |