OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML> | |
2 <html> | |
3 <head> | |
4 <link href="../resources/region-style.css" rel="stylesheet" type="text/css"/
> | |
5 <style> | |
6 #page { | |
7 font: 20px Ahem, sans-serif; | |
8 line-height: 20px; | |
9 -webkit-font-smoothing: none; | |
10 } | |
11 .region { | |
12 width: 200px; | |
13 height: 200px; | |
14 border: 2px solid green; | |
15 padding: 10px; | |
16 } | |
17 #region2 { margin-top: 10px; } | |
18 #border1 { | |
19 position: absolute; | |
20 top: 118px; | |
21 left: 68px; | |
22 width: 100px; | |
23 height: 100px; | |
24 border: 2px solid blue; | |
25 } | |
26 #border2 { | |
27 position: absolute; | |
28 top: 352px; | |
29 left: 43px; | |
30 width: 140px; | |
31 height: 100px; | |
32 border: 2px solid blue; | |
33 } | |
34 #overflow { | |
35 width: 200px; | |
36 margin-left: 12px; | |
37 margin-top: -12px; | |
38 } | |
39 </style> | |
40 </head> | |
41 <body> | |
42 <div id="page"> | |
43 <div id="region1" class="region forcedStackingContext"></div> | |
44 <div id="border1" class="forcedStackingContext">X X <p>X X X X X<p></div
> | |
45 <div id="region2" class="region forcedStackingContext"></div> | |
46 <div id="border2" class="forcedStackingContext">X<p>X X X X</p><p>X X X
X</p></div> | |
47 <div id="overflow" class="forcedStackingContext">X X X X X X X</div> | |
48 </div> | |
49 <p style="margin-top: 22px;">Requires Ahem font. There are two regions (10px
padding is applied to the regions) with two ractangle shape-insides, the shape-
insides are smaller and have top and left offsets inside the content box. The re
ctangular shapes boundaries are represented by the blue rectangles. The block co
ntent should flow inside the blue ractangles, the overflow should be pushed down
below the last region's content box, which means the overflow should start just
below the last regions's shape, 10px above the green border box.</p> | |
50 <p>Bug <a href="http://webkit.org/b/117599">117599</a>[CSS Shapes][CSS Regio
ns] Respect bottom positioned shapes and content adjustment inside shapes</p> | |
51 </body> | |
52 </html> | |
OLD | NEW |