| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <head> | |
| 3 <style> | |
| 4 #polygon-svg-shape { | |
| 5 position: absolute; | |
| 6 left: 0px; | |
| 7 top: 0px; | |
| 8 width: 200px; | |
| 9 height: 200px; | |
| 10 } | |
| 11 #shape-inside { | |
| 12 font: 20px Ahem, sans-serif; | |
| 13 line-height: 20px; | |
| 14 position: absolute; | |
| 15 left: 0px; | |
| 16 top: 0px; | |
| 17 } | |
| 18 #float { | |
| 19 width: 50px; | |
| 20 height: 50px; | |
| 21 float: left; | |
| 22 background-color: yellow; | |
| 23 } | |
| 24 </style> | |
| 25 </head> | |
| 26 <body> | |
| 27 <svg id="polygon-svg-shape" xmlns="http://www.w3.org/2000/svg"> | |
| 28 <polygon points="0,0 200,0 0,200" fill="#636363"></polygon> | |
| 29 </svg> | |
| 30 <div id="shape-inside"> | |
| 31 X<br/><br/> | |
| 32 <div id="float"></div> | |
| 33 XXXX<br/><br/> | |
| 34 X<br/><br/> | |
| 35 X<br/><br/> | |
| 36 X<br/><br/> | |
| 37 X X X X X<br/> | |
| 38 X | |
| 39 </div> | |
| 40 <p style="margin-top: 250px;"> | |
| 41 There is a triangle shape-inside (represented by the matching filled SVG
polygon), the shape-inside contains a 50x50px yellow float left, | |
| 42 the float should be at the very left and top position inside the triangl
e shape where it fits first. The block content with inline content | |
| 43 (paragraphs) should start before the yellow rectangle and then wrap arou
nd it. The overflow should be pushed under the triangle shape-inside. | |
| 44 </p> | |
| 45 <p>Bug <a href="http://webkit.org/b/121616">121616</a>: [CSS Shapes] Support
block content with inline content around floats in shape-inside</p> | |
| 46 </body> | |
| 47 </html> | |
| OLD | NEW |