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