| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script> | |
| 5 if (window.internals) | |
| 6 window.internals.settings.setCSSShapesEnabled(true); | |
| 7 </script> | |
| 8 <style> | |
| 9 #container { | |
| 10 font: 20px Ahem, sans-serif; | |
| 11 line-height: 20px; | |
| 12 position: relative; | |
| 13 } | |
| 14 #shape-inside { | |
| 15 width: 200px; | |
| 16 height: 200px; | |
| 17 background-color: green; | |
| 18 border-bottom: 30px solid yellow; | |
| 19 padding-top: 15px; | |
| 20 padding-bottom: 10px; | |
| 21 shape-inside: polygon(50px 0px, 150px 0px, 150px 50px, 50px 50px); | |
| 22 } | |
| 23 #border { | |
| 24 position: absolute; | |
| 25 margin-top: 13px; | |
| 26 left: 48px; | |
| 27 width: 100px; | |
| 28 height: 40px; | |
| 29 border: 2px solid blue; | |
| 30 } | |
| 31 </style> | |
| 32 </head> | |
| 33 <body> | |
| 34 <div id="container"> | |
| 35 <div id="border"></div> | |
| 36 <div id="shape-inside"> | |
| 37 X X X X X X X X X X X X X X X X | |
| 38 </div> | |
| 39 </div> | |
| 40 <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/> | |
| 41 <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> | |
| 42 </body> | |
| 43 </html> | |
| OLD | NEW |