| 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 width: 200px; | |
| 10 height: 200px; | |
| 11 } | |
| 12 #shape-inside { | |
| 13 font: 20px Ahem, sans-serif; | |
| 14 line-height: 20px; | |
| 15 position: absolute; | |
| 16 left: 0px; | |
| 17 top: 0px; | |
| 18 } | |
| 19 #float { | |
| 20 width: 50px; | |
| 21 height: 50px; | |
| 22 float: left; | |
| 23 background-color: yellow; | |
| 24 } | |
| 25 #overflow { | |
| 26 width: 200px; | |
| 27 margin-top: 20px; | |
| 28 } | |
| 29 </style> | |
| 30 </head> | |
| 31 <body> | |
| 32 <svg id="polygon-svg-shape" xmlns="http://www.w3.org/2000/svg"> | |
| 33 <polygon points="0,0 200,0 0,200" fill="#636363"></polygon> | |
| 34 </svg> | |
| 35 <div id="shape-inside"> | |
| 36 <div id="float"></div> | |
| 37 X X X<br/> | |
| 38 X X X<br/> | |
| 39 X X<br/> | |
| 40 X X X<br/> | |
| 41 X X X<br/> | |
| 42 X X<br/> | |
| 43 X X<br/> | |
| 44 X<br/> | |
| 45 X<br/> | |
| 46 <div id="overflow">X X X X X X</div> | |
| 47 </div> | |
| 48 | |
| 49 <p style="margin-top: 250px;"> | |
| 50 There is a triangle shape-inside (represented by the matching filled SVG p
olygon), the shape-inside contains a 50x50px yellow float left, | |
| 51 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 | |
| 52 yellow rectangle and then wrap around it. The overflow should be pushed un
der the triangle shape-inside. | |
| 53 </p> | |
| 54 <p>Bug <a href="http://webkit.org/b/102846">102846</a>: [CSS Shapes] Use the
float height to determine position in shape-inside</p> | |
| 55 </body> | |
| 56 </html> | |
| OLD | NEW |