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 padding-top: 20px; | |
19 } | |
20 #float { | |
21 position: absolute; | |
22 left: 0px; | |
23 top: 0px; | |
24 width: 50px; | |
25 height: 50px; | |
26 float: left; | |
27 margin-top: 50px; | |
28 background-color: yellow; | |
29 } | |
30 #side-of-float { | |
31 position: absolute; | |
32 top: 70px; | |
33 left: 50px; | |
34 width: 20px; | |
35 } | |
36 #below-float { | |
37 width: 200px; | |
38 margin-top: 90px; | |
39 | |
40 } | |
41 #overflow { | |
42 width: 200px; | |
43 margin-top: 10px; | |
44 } | |
45 </style> | |
46 </head> | |
47 <body> | |
48 <svg id="polygon-svg-shape" xmlns="http://www.w3.org/2000/svg"> | |
49 <polygon points="0,0 200,200 0,200" fill="#636363"></polygon> | |
50 </svg> | |
51 <div id="shape-inside"> | |
52 X | |
53 <div id="float"></div> | |
54 <div id="side-of-float">X<br/>X</div> | |
55 <div id="below-float">X<br/><br>XXXXXXX</div> | |
56 <div id="overflow">X X X X X X</div> | |
57 </div> | |
58 | |
59 <p style="margin-top: 250px;"> | |
60 There is a triangle shape-inside (represented by the matching filled SVG
polygon), the shape-inside contains a 50x50px yellow float left, | |
61 the float should be at the very left and top position inside the triangl
e shape where it fits first. The block content with inline content | |
62 (paragraphs) should start before the yellow rectangle and then wrap arou
nd it. The overflow should be pushed under the triangle shape-inside. | |
63 </p> | |
64 <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> | |
65 </body> | |
66 </html> | |
OLD | NEW |