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 #content { |
| 10 font: 18px Ahem, sans-serif; |
| 11 line-height: 20px; |
| 12 -webkit-flow-into: flow; |
| 13 } |
| 14 .region { |
| 15 width: 300px; |
| 16 height: 300px; |
| 17 background-color: yellow; |
| 18 border: 1px solid black; |
| 19 padding-top: 10px; |
| 20 padding-right: 20px; |
| 21 padding-bottom: 30px; |
| 22 padding-left: 40px; |
| 23 -webkit-flow-from: flow; |
| 24 } |
| 25 #shape_inside { |
| 26 -webkit-shape-inside: rectangle(50px, 0px, 200px, 300px); |
| 27 background-color: orange; |
| 28 } |
| 29 </style> |
| 30 </head> |
| 31 <body> |
| 32 |
| 33 <div id="shape_inside" class="region"></div> |
| 34 |
| 35 <div id="content"> |
| 36 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX |
| 37 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX |
| 38 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX |
| 39 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX |
| 40 </div> |
| 41 |
| 42 <p>Requires Ahem font. The content flows into a region (300px wide) what contain
s a shape-inside rectangle (200px wide) with 50px left offset.<br/> |
| 43 The content should fill the shape-inside area out. The different paddings (top 1
0, right 20, bottom 30, left 40px) should be applied on the container. The paddi
ng shouldn't have any effect on the shape-inside's content. |
| 44 <p>Bug <a href="http://webkit.org/b/115456">115456</a>: [CSS Regions][CSS Exclus
ions] Shape-inside on regions should respect region borders and paddings</p> |
| 45 |
| 46 </body> |
| 47 </html> |
OLD | NEW |