| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 body { font: 16px/1.25 monospace; } | |
| 6 | |
| 7 #region1, #region2 { border: 1px solid black; } | |
| 8 | |
| 9 #region1 { | |
| 10 width: 412px; | |
| 11 height: 210px; | |
| 12 } | |
| 13 | |
| 14 #region2 { | |
| 15 width: 300px; | |
| 16 height: 150px; | |
| 17 } | |
| 18 | |
| 19 #content { | |
| 20 padding: 5px; | |
| 21 } | |
| 22 | |
| 23 #first-box { | |
| 24 border: 1px solid blue; | |
| 25 height:200px; | |
| 26 } | |
| 27 | |
| 28 #second-box { | |
| 29 margin: auto; | |
| 30 border: 1px solid green; | |
| 31 border-bottom: 0px; | |
| 32 width: 75%; | |
| 33 height: 203px; | |
| 34 } | |
| 35 | |
| 36 #second-box-2 { | |
| 37 border: 1px solid green; | |
| 38 border-top: 0px; | |
| 39 width: 300px; | |
| 40 margin-left: 55px; | |
| 41 } | |
| 42 | |
| 43 #p1, #p2, #p3 { | |
| 44 margin: 0; | |
| 45 } | |
| 46 </style> | |
| 47 </head> | |
| 48 <body> | |
| 49 <p>In the test case below, the green block's width should not vary and s
hould use the first region to determine its width. It is overflowing downwards o
ut of the blue block, and so the portion that overflows should continue to use t
he blue block's containing block width. The blue block does not exist in region
two, so using some hypothetical made-up width is incorrect. The overflow should
be spilling out of the top of region one and be painted in region two.</p> | |
| 50 <div id="region1"> | |
| 51 <div id="content"> | |
| 52 <div id="first-box"> | |
| 53 <div id="second-box"> | |
| 54 <p id="p1">These lines should all fit to the width of th
e block in the first region and spill out of the bottom of the first region.</p> | |
| 55 <p id="p2">These lines should all fit to the width of th
e block in the first region and spill out of the bottom of the first region.</p> | |
| 56 </div> | |
| 57 </div> | |
| 58 </div> | |
| 59 </div> | |
| 60 <div id="region2"> | |
| 61 <div id="second-box-2"> | |
| 62 <p id="p3">These lines should all fit to the width of the block
in the first region and spill out of the bottom of the first region.</p> | |
| 63 </div> | |
| 64 </div> | |
| 65 </body> | |
| 66 </html> | |
| OLD | NEW |