OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 #shape-inside { | |
6 position: relative; | |
7 width: 380px; | |
8 height: 150px; | |
9 shape-inside: polygon(0px 0px, 380px 0px, 330px 25px, 380px 100px, 0px 1
00px, 50px 25px); | |
10 font: 40px/1 Ahem, sans-serif; | |
11 color: green; | |
12 } | |
13 | |
14 #shape-outline { | |
15 position: absolute; | |
16 top: 0px; | |
17 left: 0px; | |
18 width: 380px; | |
19 height: 150px; | |
20 } | |
21 </style> | |
22 </head> | |
23 <body> | |
24 <p>The row of four solid green rectangles should be top-justified within the
blue outline.</p> | |
25 <div id="shape-inside"> | |
26 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
27 <polygon points="0,0 380,0 330,25 380,100 0,100 50,25" stroke="blue"
fill="none"/> | |
28 </svg> | |
29 X X X X | |
30 </div> | |
31 </body> | |
32 </html> | |
OLD | NEW |