| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 body { | |
| 6 font: 16px/1.25 monospace; | |
| 7 } | |
| 8 | |
| 9 #content { | |
| 10 -webkit-flow-into: flow1; | |
| 11 padding: 5px; | |
| 12 } | |
| 13 | |
| 14 .first-box { | |
| 15 border: 1px solid blue; | |
| 16 } | |
| 17 | |
| 18 .second-box { | |
| 19 margin: auto; | |
| 20 border: 1px solid green; | |
| 21 overflow: hidden; | |
| 22 width: 75%; | |
| 23 position: relative; | |
| 24 z-index: 0; | |
| 25 padding-bottom: 20px; | |
| 26 } | |
| 27 | |
| 28 #region1, #region2, #region3 { | |
| 29 border: 1px solid black; | |
| 30 -webkit-flow-from: flow1; | |
| 31 } | |
| 32 | |
| 33 #region1 { | |
| 34 width: 204px; | |
| 35 height: 100px; | |
| 36 } | |
| 37 | |
| 38 #region2 { | |
| 39 width: 300px; | |
| 40 height: 180px; | |
| 41 } | |
| 42 | |
| 43 #region3 { | |
| 44 width: 116px; | |
| 45 height: 120px; | |
| 46 } | |
| 47 </style> | |
| 48 </head> | |
| 49 <body> | |
| 50 <p>The first and last lines of text in the regions below should be clipp
ed to the green box. The overflow | |
| 51 section sizes itself and clips differently in each region.</p> | |
| 52 | |
| 53 <div id="content"> | |
| 54 <div class="first-box"> | |
| 55 <div class="second-box"> | |
| 56 <div style="width: 500px; opacity: 0.8">Clipped line of text
that should not be visible.</div> | |
| 57 <p>These lines will not spill out of the regions. These line
s will not spill out of the regions. | |
| 58 These lines will not spill out of the regions. These lines w
ill not spill out of the regions. | |
| 59 These lines will not spill out of the regions.</p> | |
| 60 <div style="width: 500px; position: absolute; bottom: 0">Cli
pped line of text that should not be visible.</div> | |
| 61 </div> | |
| 62 </div> | |
| 63 </div> | |
| 64 | |
| 65 <div id="container"> | |
| 66 <div id="region1"></div> | |
| 67 <div id="region2"></div> | |
| 68 <div id="region3"></div> | |
| 69 </div> | |
| 70 </body> | |
| 71 </html> | |
| OLD | NEW |