| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <head> | |
| 3 <style> | |
| 4 #content { -webkit-flow-into: flow; } | |
| 5 .region { -webkit-flow-from: flow; border:2px solid black; margin:1em 0} | |
| 6 .finished #content, .finished .region { display: none; } | |
| 7 | |
| 8 #region1 { width: 200px; height: 30px; } | |
| 9 #region2 { width: 200px; height: 50px; } | |
| 10 #region3 { width: 200px; height: 50px; } | |
| 11 #region4 { width: 200px; height: 50px; } | |
| 12 #region5 { width: 200px; height: 100px; } | |
| 13 #region6 { width: 200px; height: 60px; } | |
| 14 </style> | |
| 15 </head> | |
| 16 <div id="content"> | |
| 17 <p style="-webkit-region-break-after: always"><b class="check region1">Text
in region 1.</b> This paragraph has "<i>-webkit-region-break-after: always</i>".
<b class="check region2">There should be nothing in this region after this line
.</b></p> | |
| 18 | |
| 19 <p><b class="check region3">First element in the region 3.</b> Some text ins
ide a flow. Some text inside a flow. Some text inside a flow. <br><b class="chec
k region4">Text in region 4.</b> </p> | |
| 20 | |
| 21 <p> | |
| 22 <!-- Using the paragraph element to test nested blocks region-breaks. --
> | |
| 23 <div><span class="check region4">Simple line in region 4.</span></div> | |
| 24 <div style="margin-top:50px;"><b class="check region5">First line in reg
ion 5.</b> This paragraph displays in region 5 because it has a margin-top, whic
h is too high to fit in the previous region.</div> | |
| 25 <div style="-webkit-region-break-before: always"><b class="check region6
">First line in region 6.</b> This paragraph uses "<i>-webkit-region-break-befor
e: always</i>".</div> | |
| 26 </p> | |
| 27 </div> | |
| 28 | |
| 29 <div id="region1" class="region"></div> | |
| 30 <div id="region2" class="region"></div> | |
| 31 <div id="region3" class="region"></div> | |
| 32 <div id="region4" class="region"></div> | |
| 33 <div id="region5" class="region"></div> | |
| 34 <div id="region6" class="region"></div> | |
| 35 | |
| 36 <script src="resources/helper.js"></script> | |
| 37 <script> | |
| 38 if (window.testRunner) | |
| 39 testRunner.dumpAsText(); | |
| 40 document.body.offsetLeft; | |
| 41 document.getElementById('region1').style.height = "60px"; | |
| 42 document.getElementById('region2').style.height = "100px"; | |
| 43 document.getElementById('region3').style.height = "100px"; | |
| 44 document.getElementById('region4').style.height = "100px"; | |
| 45 document.getElementById('region5').style.height = "200px"; | |
| 46 document.getElementById('region6').style.height = "120px"; | |
| 47 document.body.offsetLeft; | |
| 48 if (testContentToRegionsMapping()) | |
| 49 document.body.className = "finished"; | |
| 50 </script> | |
| OLD | NEW |