OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .flowContent { -webkit-font-smoothing: none; font-size: 50px; color:
green; font-family: Ahem; margin: 0px; } | 5 .flowContent { -webkit-font-smoothing: none; font-size: 50px; color:
green; font-family: Ahem; margin: 0px; } |
6 #article { -webkit-flow-into: flow; } | 6 #article { -webkit-flow-into: flow; } |
7 #p1, #p2 { -webkit-region-break-after: always; } | 7 #p1, #p2 { -webkit-region-break-after: always; } |
8 | 8 |
9 .regionSize { margin: 0; padding: 0; width: 260px; border: none; } | 9 .regionSize { margin: 0; padding: 0; width: 260px; border: none; } |
10 #region { margin-left: 8px; -webkit-flow-from: flow; top: 150px; } | 10 #region { margin-left: 8px; -webkit-flow-from: flow; top: 150px; } |
11 #region2 { -webkit-flow-from: flow; top: 150px; left: 300px; } | 11 #region2 { -webkit-flow-from: flow; top: 150px; left: 300px; } |
12 #region3 { -webkit-flow-from: flow; top: 150px; left: 600px; } | 12 #region3 { -webkit-flow-from: flow; top: 150px; left: 600px; } |
13 | 13 |
14 .redBox { position: absolute; height: 50px; background-color: red; } | 14 .redBox { position: absolute; height: 50px; background-color: red; } |
15 #red { top: 200px; } | 15 #red { top: 200px; } |
16 #red1 { top: 200px; left: 600px; } | 16 #red1 { top: 200px; left: 600px; } |
17 #red2 { top: 200px; left: 300px; } | 17 #red2 { top: 200px; left: 300px; } |
| 18 |
| 19 dialog { height: auto; } |
18 </style> | 20 </style> |
19 </head> | 21 </head> |
20 <body> | 22 <body> |
21 <p>The three regions in the region chain all have auto-height. Their hei
ght is computed taking regions breaks into account.</p> | 23 <p>The three regions in the region chain all have auto-height. Their hei
ght is computed taking regions breaks into account.</p> |
22 <p>On success, you should see 3 horizontal green lines.</p> | 24 <p>On success, you should see 3 horizontal green lines.</p> |
23 <div id="red" class="redBox regionSize"></div> | 25 <div id="red" class="redBox regionSize"></div> |
24 <div id="red1" class="redBox regionSize"></div> | 26 <div id="red1" class="redBox regionSize"></div> |
25 <div id="red2" class="redBox regionSize"></div> | 27 <div id="red2" class="redBox regionSize"></div> |
26 <div id="article" class="flowContent"> | 28 <div id="article" class="flowContent"> |
27 <p id="p1">aaaaa</p> | 29 <p id="p1">aaaaa</p> |
28 <p id="p2">aaaaa</p> | 30 <p id="p2">aaaaa</p> |
29 <p id="p3">aaaaa</p> | 31 <p id="p3">aaaaa</p> |
30 </div> | 32 </div> |
31 <dialog open id="region" class="regionSize"></dialog> | 33 <dialog open id="region" class="regionSize"></dialog> |
32 <dialog open id="region2" class="regionSize"></dialog> | 34 <dialog open id="region2" class="regionSize"></dialog> |
33 <dialog open id="region3" class="regionSize"></dialog> | 35 <dialog open id="region3" class="regionSize"></dialog> |
34 </body> | 36 </body> |
35 </html> | 37 </html> |
OLD | NEW |