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