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 width: 200px; | 6 width: 200px; |
11 height: 200px; | 7 height: 200px; |
12 -webkit-shape-inside: rectangle(10px, 10px, 180px, 180px); | 8 -webkit-shape-inside: rectangle(10px, 10px, 180px, 180px); |
13 position: relative; | 9 position: relative; |
14 } | 10 } |
15 #border { | 11 #border { |
16 position: absolute; | 12 position: absolute; |
17 top: 8px; | 13 top: 8px; |
18 left: 8px; | 14 left: 8px; |
19 width: 180px; | 15 width: 180px; |
20 height: 180px; | 16 height: 180px; |
21 border: 2px solid blue; | 17 border: 2px solid blue; |
22 } | 18 } |
23 </style> | 19 </style> |
24 </head> | 20 </head> |
25 <body> | 21 <body> |
26 <div id="shape-inside"> | 22 <div id="shape-inside"> |
27 <div id="border"></div> | 23 <div id="border"></div> |
28 This text should be contained by the blue square. | 24 This text should be contained by the blue square. |
29 </div> | 25 </div> |
30 </body> | 26 </body> |
31 </html> | 27 </html> |
OLD | NEW |