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 .regionSize2 { width: 250px; height: 150px; } | |
10 #region { -webkit-flow-from: flow; position: absolute; top: 150px; } | |
11 #region2 { -webkit-flow-from: flow; height: 200px; position: absolut
e; top: 150px; left: 350px; } | |
12 | |
13 .redBox { position: absolute; height: 50px; background-color: red; } | |
14 #red { top: 200px; } | |
15 #red1 { top: 150px; left: 350px; } | |
16 #red2 { top: 250px; left: 350px; } | |
17 </style> | |
18 </head> | |
19 <body> | |
20 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=100749"> [C
SSRegions]Former auto-height regions should not ignore their defined height</a>.
</p> | |
21 <p>The first region is auto-height and the second region has specified h
eight.</p> | |
22 <p>After a first layout, the first region has its height defined and the
content should flow into the second region too.</p> | |
23 <p>On success, you should see 1 green line on the left and 2 green lines
on the right.</p> | |
24 | |
25 <div id="red" class="redBox regionSize"></div> | |
26 <div id="red1" class="redBox regionSize"></div> | |
27 <div id="red2" class="redBox regionSize"></div> | |
28 | |
29 <div id="article" class="flowContent"> | |
30 <p id="p1">aaaaa</p> | |
31 <p id="p2">aaaaa</p> | |
32 <p id="p3">aaaaa</p> | |
33 </div> | |
34 <div id="region" class="regionSize"></div> | |
35 <div id="region2" class="regionSize2"></div> | |
36 <script> | |
37 document.body.offsetTop; | |
38 document.getElementById("region").className = "regionSize2"; | |
39 </script> | |
40 </body> | |
41 </html> | |
OLD | NEW |