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 -webkit-font-smoothing: none; |
| 9 border: 2px solid blue; |
| 10 border-bottom: 30px solid yellow; |
| 11 position: relative; |
| 12 width: 200px; |
| 13 height: 200px; |
| 14 margin-bottom: 60px; |
| 15 } |
| 16 #border { |
| 17 position: absolute; |
| 18 margin-top: -2px; |
| 19 left: 48px; |
| 20 width: 100px; |
| 21 height: 60px; |
| 22 border: 2px solid green; |
| 23 } |
| 24 .spacer { |
| 25 width: 50px; |
| 26 height: 40px; |
| 27 } |
| 28 </style> |
| 29 </head> |
| 30 <body> |
| 31 <div id="container"> |
| 32 <div id="border"> |
| 33 X X <p>X X X</p> |
| 34 <div class="spacer" style="float:left"></div> |
| 35 <div class="spacer" style="float:right"></div> |
| 36 </div> |
| 37 <div style="padding-top: 200px;"> |
| 38 X X X X X X X X X X |
| 39 </div> |
| 40 </div> |
| 41 <p>Requires Ahem font. The block content should start inside the green recta
ngle (shape-inside) and the overflow should be pushed below the content box. The
overflow should start where the yellow bottom border starts. <br/> |
| 42 <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> |
| 43 </body> |
| 44 </html> |
OLD | NEW |