| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 #shape-inside { | |
| 6 position: relative; | |
| 7 width: 100px; | |
| 8 height: 150px; | |
| 9 shape-inside: polygon(0px 150px, 0px 50px, 12px 12px, 50px 0px, 88px 12p
x, 100px 50px, 100px 150px); | |
| 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: 100px; | |
| 19 height: 150px; | |
| 20 } | |
| 21 </style> | |
| 22 </head> | |
| 23 <body> | |
| 24 <p>The solid green rectangle should be contained by the blue polygon outline
.</p> | |
| 25 <div id="shape-inside"> | |
| 26 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
| 27 <polygon points="0,150 0,50 12,12 50,0 88,12 100,50 100,150" stroke=
"blue" fill="none"/> | |
| 28 </svg> | |
| 29 XX XX | |
| 30 </div> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |