OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 .shape-inside { | |
6 position: relative; | |
7 width: 200px; | |
8 height: 100px; | |
9 shape-inside: polygon(0px 0px, 200px 0px, 200px 100px, 150px 100px, 150p
x 50px, 100px 50px, 100px 100px, 0px 100px); | |
10 font: 50px/1 Ahem, sans-serif; | |
11 color: green; | |
12 } | |
13 | |
14 .shape-outline { | |
15 position: absolute; | |
16 top: 0px; | |
17 left: 0px; | |
18 width: 200px; | |
19 height: 100px; | |
20 } | |
21 </style> | |
22 </head> | |
23 <body> | |
24 <p>The green rectangles should appear within the blue outline.</p> | |
25 <div class="shape-inside"> | |
26 <svg class="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
27 <polygon stroke="blue" fill="none" points="0,0 200,0 200,100 150,100
150,50 100,50 100,100 0,100"/> | |
28 </svg> | |
29 XXXX X | |
30 </div> | |
31 <p>This is the same test as the one above, except that the shape-inside's co
ntent has trailing whitespace.</p> | |
32 <div class="shape-inside"> | |
33 <svg class="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
34 <polygon stroke="blue" fill="none" points="0,0 200,0 200,100 150,100
150,50 100,50 100,100 0,100"/> | |
35 </svg> | |
36 XXXX X | |
37 | |
38 </div> | |
39 </body> | |
40 </html> | |
OLD | NEW |