| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 #shape-inside { | |
| 6 position: relative; | |
| 7 } | |
| 8 | |
| 9 #shape-outline { | |
| 10 position: absolute; | |
| 11 top: 0px; | |
| 12 left: 0px; | |
| 13 width: 500px; | |
| 14 height: 500px; | |
| 15 } | |
| 16 | |
| 17 #shape-content { | |
| 18 position: absolute; | |
| 19 top: 50px; | |
| 20 left: 50px; | |
| 21 font: 50px/1 Ahem, sans-serif; | |
| 22 color: green; | |
| 23 } | |
| 24 </style> | |
| 25 </head> | |
| 26 <body> | |
| 27 <p>The green rectangles should lie within the inner blue outline.</p> | |
| 28 <div id="shape-inside"> | |
| 29 <div id="shape-content"> | |
| 30 XXX<br/><br/>XX<br/><br/>XXX | |
| 31 </div> | |
| 32 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
| 33 <polygon points="0,0 400,0 400,350 0,350" stroke="blue" fill="none"/
> | |
| 34 <polygon points="50,50 350,50 350,300 50,300" stroke="blue" fill="no
ne"/> | |
| 35 </svg> | |
| 36 </div> | |
| 37 </body> | |
| 38 <script> | |
| 39 document.body.style.zoom = 1.2 | |
| 40 </script> | |
| 41 </html> | |
| 42 | |
| OLD | NEW |