OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script> | |
5 if (window.internals) | |
6 window.internals.settings.setCSSExclusionsEnabled(true); | |
7 </script> | |
8 <style> | 4 <style> |
9 #shape-inside { | 5 #shape-inside { |
10 position: relative; | 6 position: relative; |
11 width: 300px; | 7 width: 300px; |
12 height: 200px; | 8 height: 200px; |
13 -webkit-shape-inside: polygon(0px 0px, 150px 150px, 300px 0px, 300px 200
px, 0px 200px); | 9 -webkit-shape-inside: polygon(0px 0px, 150px 150px, 300px 0px, 300px 200
px, 0px 200px); |
14 font: 50px/1 Ahem, sans-serif; | 10 font: 50px/1 Ahem, sans-serif; |
15 color: green; | 11 color: green; |
16 } | 12 } |
17 | 13 |
18 #shape-outline { | 14 #shape-outline { |
19 position: absolute; | 15 position: absolute; |
20 top: 0px; | 16 top: 0px; |
21 left: 0px; | 17 left: 0px; |
22 width: 300px; | 18 width: 300px; |
23 height: 200px; | 19 height: 200px; |
24 } | 20 } |
25 </style> | 21 </style> |
26 </head> | 22 </head> |
27 <body> | 23 <body> |
28 <p>The solid green rectangles should be contained by the blue outline.</p> | 24 <p>The solid green rectangles should be contained by the blue outline.</p> |
29 <div id="shape-inside"> | 25 <div id="shape-inside"> |
30 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> | 26 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> |
31 <polygon points="0,0 150,150 300,0 300,200 0,200" stroke="blue" fill
="none"/> | 27 <polygon points="0,0 150,150 300,0 300,200 0,200" stroke="blue" fill
="none"/> |
32 </svg> | 28 </svg> |
33 X X XX XX XXXXXX | 29 X X XX XX XXXXXX |
34 </div> | 30 </div> |
35 </body> | 31 </body> |
36 </html> | 32 </html> |
OLD | NEW |