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: 300px; | 7 height: 300px; |
12 -webkit-shape-inside: rectangle(10px, 15px, 170px, 280px); | 8 -webkit-shape-inside: rectangle(10px, 15px, 170px, 280px); |
13 position: relative; | 9 position: relative; |
14 } | 10 } |
15 #border { | 11 #border { |
16 position: absolute; | 12 position: absolute; |
17 top: 13px; | 13 top: 13px; |
(...skipping 10 matching lines...) Expand all Loading... |
28 <div id="border"></div> | 24 <div id="border"></div> |
29 <div> | 25 <div> |
30 <p>Paragraph 1. This paragraph should be just below the top edge of
the blue | 26 <p>Paragraph 1. This paragraph should be just below the top edge of
the blue |
31 rectangle. It's left and right edges should be within the blue recta
ngle. | 27 rectangle. It's left and right edges should be within the blue recta
ngle. |
32 </div> | 28 </div> |
33 <p>Paragraph 2. This paragraph should be just below paragraph 1. Its lef
t | 29 <p>Paragraph 2. This paragraph should be just below paragraph 1. Its lef
t |
34 and right edges should also be within the blue rectangle. | 30 and right edges should also be within the blue rectangle. |
35 </div> | 31 </div> |
36 </body> | 32 </body> |
37 </html> | 33 </html> |
OLD | NEW |