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