| 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 position: absolute; | |
| 12 width: 200px; | |
| 13 height: 200px; | |
| 14 left: 0px; | |
| 15 top: 0px; | |
| 16 shape-inside: polygon(200px 0px, 200px 200px, 0px 200px); | |
| 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="200,0 200,200 0,200" fill="#636363"></polygon> | |
| 29 </svg> | |
| 30 <div id="shape-inside"> | |
| 31 <div id="float"></div> | |
| 32 </div> | |
| 33 <p style="margin-top: 250px;"> | |
| 34 There is a triangle shape-inside (represented by the matching filled SVG
polygon), the shape-inside contains a 50x50px yellow float left, | |
| 35 the float should be at the very left and top position inside the triangl
e shape where it fits first. | |
| 36 </p> | |
| 37 <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> | |
| 38 </body> | |
| 39 </html> | |
| OLD | NEW |