OLD | NEW |
| (Empty) |
1 <!doctype html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 .flowContent { font-size: 50px; color: green; font-family: Ahem; } | |
6 #article { -webkit-flow-into: flow; } | |
7 | |
8 .regionSize { width: 250px; } | |
9 #region { -webkit-flow-from: flow; height: 200px; position: absolute
; top: 150px; } | |
10 #region2 { -webkit-flow-from: flow; position: absolute; top: 150px;
left: 350px; } | |
11 | |
12 .redBox { position: absolute; height: 50px; background-color: red; } | |
13 #red { top: 200px; } | |
14 #red1 { top: 300px; } | |
15 #red2 { top: 200px; left: 350px; } | |
16 </style> | |
17 </head> | |
18 <body> | |
19 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=91097"> Aut
o height is not working for regions</a>.</p> | |
20 <p>The first region has specified height and the second region is auto-h
eight. The height of the second region is determined by the remaining content fr
om the flow that did not fit in the first region.</p> | |
21 <p>On success, you should see 2 green lines on the left and 1 green line
on the right.</p> | |
22 <div id="red" class="redBox regionSize"></div> | |
23 <div id="red1" class="redBox regionSize"></div> | |
24 <div id="red2" class="redBox regionSize"></div> | |
25 <div id="article" class="flowContent"> | |
26 <p id="p1">aaaaa</p> | |
27 <p id="p2">aaaaa</p> | |
28 <p id="p3">aaaaa</p> | |
29 </div> | |
30 <div id="region" class="regionSize"></div> | |
31 <div id="region2" class="regionSize"></div> | |
32 </body> | |
33 </html> | |
OLD | NEW |