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