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 -webkit-shape-inside: rectangle(10%, 100%, 80%, 200px); | 6 -webkit-shape-inside: rectangle(10%, 100%, 80%, 200px); |
11 position: relative; | 7 position: relative; |
12 max-height: 200px; | 8 max-height: 200px; |
13 } | 9 } |
14 #border { | 10 #border { |
15 position: absolute; | 11 position: absolute; |
16 left: 10%; | 12 left: 10%; |
17 width: 80%; | 13 width: 80%; |
18 height: 100%; | 14 height: 100%; |
19 border: 2px solid blue; | 15 border: 2px solid blue; |
20 } | 16 } |
21 </style> | 17 </style> |
22 </head> | 18 </head> |
23 <body> | 19 <body> |
24 <div id="shape-inside"> | 20 <div id="shape-inside"> |
25 <div id="border"></div> | 21 <div id="border"></div> |
26 This text should be contained by a blue rectangle. The rectangle should
be | 22 This text should be contained by a blue rectangle. The rectangle should
be |
27 just tall enough to contain the text. There should not be room for any | 23 just tall enough to contain the text. There should not be room for any |
28 additional lines above this text. | 24 additional lines above this text. |
29 </div> | 25 </div> |
30 </body> | 26 </body> |
31 </html> | 27 </html> |
OLD | NEW |