OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .flowContent { font-size: 50px; color: green; font-family: Ahem; } | 5 .flowContent { font-size: 50px; color: green; font-family: Ahem; } |
6 #article { -webkit-flow-into: flow; } | 6 #article { -webkit-flow-into: flow; } |
7 | 7 |
8 #p1 { -webkit-region-break-after: always; } | 8 #p1 { -webkit-region-break-after: always; } |
9 | 9 |
10 .regionSize { width: 250px; } | 10 .regionSize { width: 250px; } |
11 #region { -webkit-flow-from: flow; -webkit-region-overflow: break; p
osition: absolute; top: 100px; max-height: 100px; } | 11 #region { -webkit-flow-from: flow; -webkit-region-fragment: break; p
osition: absolute; top: 100px; max-height: 100px; } |
12 | 12 |
13 .redBox { position: absolute; height: 50px; background-color: red;
} | 13 .redBox { position: absolute; height: 50px; background-color: red;
} |
14 #red { top: 150px; } | 14 #red { top: 150px; } |
15 </style> | 15 </style> |
16 </head> | 16 </head> |
17 <body> | 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> | 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
but the region has a max-height value less than the position of the forced break
.</p> | 19 <p>The region is a block element. The flow has a forced break inside it
but the region has a max-height value less than the position of the forced break
.</p> |
20 <p>On success, you should see 1 green line.</p> | 20 <p>On success, you should see 1 green line.</p> |
21 | 21 |
22 <div id="red" class="redBox regionSize"></div> | 22 <div id="red" class="redBox regionSize"></div> |
23 | 23 |
24 <div id="article" class="flowContent"> | 24 <div id="article" class="flowContent"> |
25 <p id="p1">aaaaa</p> | 25 <p id="p1">aaaaa</p> |
26 <p id="p2">aaaaa</p> | 26 <p id="p2">aaaaa</p> |
27 <p id="p3">aaaaa</p> | 27 <p id="p3">aaaaa</p> |
28 </div> | 28 </div> |
29 | 29 |
30 <div id="region"></div> | 30 <div id="region"></div> |
31 </body> | 31 </body> |
32 </html> | 32 </html> |
OLD | NEW |