| 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 #rectangle { | 9 #rectangle { |
| 10 font: 20px Ahem, sans-serif; | 10 font: 20px Ahem, sans-serif; |
| 11 -webkit-font-smoothing: none; | 11 -webkit-font-smoothing: none; |
| 12 line-height: 20px; | 12 line-height: 20px; |
| 13 -webkit-flow-into: flow; | 13 -webkit-flow-into: flow; |
| 14 } | 14 } |
| 15 #region { | 15 #region { |
| 16 -webkit-flow-from: flow; | 16 -webkit-flow-from: flow; |
| 17 width: 200px; | 17 width: 200px; |
| 18 height: 200px; | 18 height: 200px; |
| 19 -webkit-shape-inside: rectangle(50px, 50px, 100px, 100px); | 19 shape-inside: rectangle(50px, 50px, 100px, 100px); |
| 20 border: 2px solid green; | 20 border: 2px solid green; |
| 21 } | 21 } |
| 22 #border { | 22 #border { |
| 23 position: absolute; | 23 position: absolute; |
| 24 top: 58px; | 24 top: 58px; |
| 25 left: 58px; | 25 left: 58px; |
| 26 width: 100px; | 26 width: 100px; |
| 27 height: 100px; | 27 height: 100px; |
| 28 border: 2px solid blue; | 28 border: 2px solid blue; |
| 29 } | 29 } |
| 30 </style> | 30 </style> |
| 31 </head> | 31 </head> |
| 32 <body> | 32 <body> |
| 33 <div id="rectangle"> | 33 <div id="rectangle"> |
| 34 X X X X X X X X X X X X X X X X X X X X X X X | 34 X X X X X X X X X X X X X X X X X X X X X X X |
| 35 </div> | 35 </div> |
| 36 | 36 |
| 37 <div id="page"> | 37 <div id="page"> |
| 38 <div id="border"></div> | 38 <div id="border"></div> |
| 39 <div id="region"></div> | 39 <div id="region"></div> |
| 40 </div> | 40 </div> |
| 41 <p style="margin-top: 100px;">Requires Ahem font. The shape-inside on the re
gion is illustrated by the blue rectangle. The content should wrap inside the th
e blue rectangle, the overflow should start on the left under the content box.</
p> | 41 <p style="margin-top: 100px;">Requires Ahem font. The shape-inside on the re
gion is illustrated by the blue rectangle. The content should wrap inside the th
e blue rectangle, the overflow should start on the left under the content box.</
p> |
| 42 <p>Bug <a href="http://webkit.org/b/116252">116252</a> [CSS Regions][CSS Exc
lusions] shape-inside on regions should respect positioned shapes and overflow</
p> | 42 <p>Bug <a href="http://webkit.org/b/116252">116252</a> [CSS Regions][CSS Exc
lusions] shape-inside on regions should respect positioned shapes and overflow</
p> |
| 43 </body> | 43 </body> |
| 44 </html> | 44 </html> |
| OLD | NEW |