OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 .region { |
| 6 font: 20px Ahem, sans-serif; |
| 7 -webkit-font-smoothing: none; |
| 8 width: 300px; |
| 9 height: 300px; |
| 10 background-color: orange; |
| 11 border-top: 10px solid lightgreen; |
| 12 border-right: 20px solid green; |
| 13 border-bottom: 30px solid lightblue; |
| 14 border-left: 40px solid blue; |
| 15 } |
| 16 #placeholderleft { |
| 17 float: left; |
| 18 width: 50px; |
| 19 height: 300px; |
| 20 } |
| 21 #placeholderright { |
| 22 float: right; |
| 23 width: 50px; |
| 24 height: 300px; |
| 25 } |
| 26 </style> |
| 27 </head> |
| 28 <body> |
| 29 |
| 30 <div id="shape_inside" class="region"> |
| 31 <div id="placeholderleft"></div><div id="placeholderright"></div> |
| 32 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX |
| 33 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX |
| 34 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX |
| 35 XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX |
| 36 </div> |
| 37 |
| 38 <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/> |
| 39 The content should fill the shape-inside area out. There should be an equally 50
-50px left and right offset for the content in the content box. The borders shou
ldn't have any effect on the shape-inside's rectangle. |
| 40 <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> |
| 41 |
| 42 </body> |
| 43 </html> |
OLD | NEW |