OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 #content { | |
6 font: 18px Ahem, sans-serif; | |
7 line-height: 20px; | |
8 -webkit-flow-into: flow; | |
9 } | |
10 .region { | |
11 width: 300px; | |
12 height: 300px; | |
13 background-color: yellow; | |
14 border: 1px solid black; | |
15 padding-top: 10px; | |
16 padding-right: 20px; | |
17 padding-bottom: 30px; | |
18 padding-left: 40px; | |
19 -webkit-flow-from: flow; | |
20 } | |
21 #shape_inside { | |
22 shape-inside: rectangle(50px, 0px, 200px, 300px); | |
23 background-color: orange; | |
24 } | |
25 </style> | |
26 </head> | |
27 <body> | |
28 | |
29 <div id="shape_inside" class="region"></div> | |
30 | |
31 <div id="content"> | |
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. 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. | |
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 |