OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 if (window.internals) |
| 6 window.internals.settings.setCSSExclusionsEnabled(true); |
| 7 </script> |
| 8 <style> |
| 9 #rectangle { |
| 10 font: 20px Ahem, sans-serif; |
| 11 -webkit-font-smoothing: none; |
| 12 line-height: 20px; |
| 13 -webkit-flow-into: flow; |
| 14 } |
| 15 #region { |
| 16 -webkit-flow-from: flow; |
| 17 width: 200px; |
| 18 height: 200px; |
| 19 -webkit-shape-inside: rectangle(50px, 50px, 100px, 100px); |
| 20 border: 2px solid green; |
| 21 } |
| 22 #border { |
| 23 position: absolute; |
| 24 top: 58px; |
| 25 left: 58px; |
| 26 width: 100px; |
| 27 height: 100px; |
| 28 border: 2px solid blue; |
| 29 } |
| 30 </style> |
| 31 </head> |
| 32 <body> |
| 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 |
| 35 </div> |
| 36 |
| 37 <div id="page"> |
| 38 <div id="border"></div> |
| 39 <div id="region"></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> |
| 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> |
| 44 </html> |
OLD | NEW |