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: 500px; | 7 width: 500px; |
12 height: 500px; | 8 height: 500px; |
13 -webkit-shape-inside: polygon(0px 0px, 400px 0px, 400px 400px, 0px 400px
); | 9 -webkit-shape-inside: polygon(0px 0px, 400px 0px, 400px 400px, 0px 400px
); |
14 -webkit-shape-padding: 50px; | 10 -webkit-shape-padding: 50px; |
15 font: 100px/1 Ahem, sans-serif; | 11 font: 100px/1 Ahem, sans-serif; |
16 color: green; | 12 color: green; |
17 } | 13 } |
(...skipping 10 matching lines...) Expand all Loading... |
28 <body> | 24 <body> |
29 <p>The blue outline should be filled by 9 green squares.</p> | 25 <p>The blue outline should be filled by 9 green squares.</p> |
30 <div id="shape-inside"> | 26 <div id="shape-inside"> |
31 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> | 27 <svg id="shape-outline" xmlns="http://www.w3.org/2000/svg"> |
32 <rect x="50" y="50" width="300" height="300" stroke="blue" fill="non
e"/> | 28 <rect x="50" y="50" width="300" height="300" stroke="blue" fill="non
e"/> |
33 </svg> | 29 </svg> |
34 XXX XXX XXX | 30 XXX XXX XXX |
35 </div> | 31 </div> |
36 </body> | 32 </body> |
37 </html> | 33 </html> |
OLD | NEW |