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; -webkit-region-fragment: break; p
osition: absolute; top: 150px; min-height: 150px; background-color: green; } | |
10 | |
11 .redBox { position: absolute; height: 150px; background-color: red;
} | |
12 #red { top: 150px; } | |
13 | |
14 #p2 { -webkit-region-break-before: always; } | |
15 </style> | |
16 </head> | |
17 <body> | |
18 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=91097"> Aut
o height is not working for regions</a>.</p> | |
19 <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 i
s used to determine the region height.</p> | |
20 <p>On success, you should see 1 green rectangle.</p> | |
21 <div id="red" class="redBox regionSize"></div> | |
22 <div id="article" class="flowContent"> | |
23 <p id="p1">aaaaa</p> | |
24 <p id="p2">aaaaa</p> | |
25 <p id="p3">aaaaa</p> | |
26 </div> | |
27 <div id="region" class="regionSize"></div> | |
28 </body> | |
29 </html> | |
OLD | NEW |