| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script> | 4 <script> |
| 5 if (window.internals) | 5 if (window.internals) |
| 6 window.internals.settings.setCSSExclusionsEnabled(true); | 6 window.internals.settings.setCSSExclusionsEnabled(true); |
| 7 </script> | 7 </script> |
| 8 <style> | 8 <style> |
| 9 #container { | 9 #container { |
| 10 font: 20px Ahem, sans-serif; |
| 11 line-height: 20px; |
| 10 border: 2px solid blue; | 12 border: 2px solid blue; |
| 11 position: relative; | 13 position: relative; |
| 12 width: 200px; | 14 width: 200px; |
| 13 height: 200px; | 15 height: 200px; |
| 16 margin-bottom: 60px; |
| 14 } | 17 } |
| 15 #shape-inside { | 18 #shape-inside { |
| 16 -webkit-shape-inside: rectangle(25%, 0, 50%, 25%); | 19 -webkit-shape-inside: rectangle(25%, 0, 50%, 25%); |
| 17 height: 100%; | 20 height: 100%; |
| 18 width: 100%; | 21 width: 100%; |
| 19 } | 22 } |
| 20 #border { | 23 #border { |
| 21 position: absolute; | 24 position: absolute; |
| 22 left: 48px; | 25 left: 48px; |
| 23 width: 100px; | 26 width: 100px; |
| 24 height: 50px; | 27 height: 50px; |
| 25 border: 2px solid green; | 28 border: 2px solid green; |
| 26 } | 29 } |
| 27 #border-overflow { | |
| 28 position: absolute; | |
| 29 top: 50px; | |
| 30 width: 200px; | |
| 31 height: 150px; | |
| 32 border: 2px solid blue; | |
| 33 } | |
| 34 </style> | 30 </style> |
| 35 </head> | 31 </head> |
| 36 <body> | 32 <body> |
| 37 <div id="container"> | 33 <div id="container"> |
| 38 <div id="border"></div> | 34 <div id="border"></div> |
| 39 <div id="shape-inside"> | 35 <div id="shape-inside"> |
| 40 This text should wrap inside the green rectangle, and overflow shoul
d wrap | 36 X X X X X X X X X X X X X X X X |
| 41 inside the blue rectangle. | |
| 42 </div> | 37 </div> |
| 43 </div> | 38 </div> |
| 39 <p>Requires Ahem font. The content should start inside the green rectangle (
shape-inside) and the overflow should be pushed below the content box (content-b
ox's margin is blue). <br/> |
| 40 <p>Bug <a href="http://webkit.org/b/114526">114526</a>: [CSS Exclusions] sha
pe-inside overflow should be pushed to the outside of the content box</p> |
| 44 </body> | 41 </body> |
| 45 </html> | 42 </html> |
| OLD | NEW |