| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 .shape-inside { | |
| 6 position: relative; | |
| 7 width: 150px; | |
| 8 height: 100px; | |
| 9 shape-inside: polygon(0px 0px, 150px 0px, 150px 100px, 100px 100px, 100p
x 50px, 50px 50px, 50px 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: 150px; | |
| 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 150,0 150,100 100,100
100,50 50,50 50,100 0,100"/> | |
| 28 </svg> | |
| 29 XXX 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 150,0 150,100 100,100
100,50 50,50 50,100 0,100"/> | |
| 35 </svg> | |
| 36 XXX X | |
| 37 | |
| 38 </div> | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |