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