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