OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 #shape-inside { | |
6 position: relative; | |
7 width: 500px; | |
8 height: 500px; | |
9 shape-inside: polygon(0px 0px, 400px 0px, 400px 400px, 0px 400px); | |
10 shape-padding: 50px; | |
11 font: 100px/1 Ahem, sans-serif; | |
12 color: green; | |
13 } | |
14 | |
15 #shape-outline { | |
16 position: absolute; | |
17 top: 0px; | |
18 left: 0px; | |
19 width: 500px; | |
20 height: 500px; | |
21 } | |
22 </style> | |
23 </head> | |
24 <body> | |
25 <p>The blue outline should be filled by 9 green squares.</p> | |
26 <div id="shape-inside"> | |
27 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> | |
28 <rect x="50" y="50" width="300" height="300" stroke="blue" fill="non e"/> | |
29 </svg> | |
30 XXX XXX XXX | |
31 </div> | |
32 </body> | |
33 </html> | |
OLD | NEW |