| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 #container { | |
| 6 font: 20px Ahem, sans-serif; | |
| 7 line-height: 20px; | |
| 8 position: relative; | |
| 9 border-bottom: 55px solid yellow; | |
| 10 width: 200px; | |
| 11 height: 200px; | |
| 12 } | |
| 13 #shape-inside { | |
| 14 background-color: green; | |
| 15 padding-top: 15px; | |
| 16 padding-bottom: 10px; | |
| 17 height: 200px; | |
| 18 } | |
| 19 #border { | |
| 20 position: absolute; | |
| 21 margin-top: 13px; | |
| 22 left: 48px; | |
| 23 width: 100px; | |
| 24 height: 40px; | |
| 25 border: 2px solid blue; | |
| 26 } | |
| 27 .spacer { | |
| 28 width: 50px; | |
| 29 height: 40px; | |
| 30 } | |
| 31 </style> | |
| 32 </head> | |
| 33 <body> | |
| 34 <div id="container"> | |
| 35 <div id="border"></div> | |
| 36 <div id="shape-inside"> | |
| 37 <div class="spacer" style="float:left"></div> | |
| 38 <div class="spacer" style="float:right"></div> | |
| 39 X X X X X X | |
| 40 </div> | |
| 41 <div style="margin-top: -10px"> | |
| 42 X X X X X X X X X X | |
| 43 </div> | |
| 44 </div> | |
| 45 <p>Requires Ahem font. The inline content should start inside the green rect
angle (shape-inside) and the overflow should be pushed below the content box. Th
e overflow should start 10px above the yellow bottom border. <br/> | |
| 46 <p>Bug <a href="http://webkit.org/b/114526">114526</a>: [CSS Exclusions] sha
pe-inside overflow should be pushed to the outside of the content box</p> | |
| 47 </body> | |
| 48 </html> | |
| OLD | NEW |