OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <style> | |
4 #polygon-svg-shape { | |
5 position: absolute; | |
6 left: 0px; | |
7 top: 0px; | |
8 } | |
9 #shape-inside { | |
10 position: absolute; | |
11 left: 0px; | |
12 top: 0px; | |
13 shape-inside: polygon(0px 0px, 200px 0px, 200px 200px); | |
14 } | |
15 #float { | |
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="0,0 200,0 200,200" fill="#636363"></polygon> | |
26 </svg> | |
27 <div id="shape-inside"> | |
28 <div id="float"></div> | |
29 </div> | |
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 |