| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE HTML> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 #rectangle { | |
| 6 font: 20px Ahem, sans-serif; | |
| 7 line-height: 20px; | |
| 8 -webkit-font-smoothing: none; | |
| 9 -webkit-flow-into: flow; | |
| 10 } | |
| 11 .region { | |
| 12 -webkit-flow-from: flow; | |
| 13 width: 200px; | |
| 14 height: 200px; | |
| 15 border: 2px solid green; | |
| 16 padding: 10px; | |
| 17 } | |
| 18 #region1 { shape-inside: rectangle(50px, 100px, 100px, 100px); } | |
| 19 #region2 { | |
| 20 margin-top: 10px; | |
| 21 shape-inside: rectangle(25px, 100px, 140px, 100px); | |
| 22 } | |
| 23 #border1 { | |
| 24 position: absolute; | |
| 25 top: 118px; | |
| 26 left: 68px; | |
| 27 width: 100px; | |
| 28 height: 100px; | |
| 29 border: 2px solid blue; | |
| 30 } | |
| 31 #border2 { | |
| 32 position: absolute; | |
| 33 top: 352px; | |
| 34 left: 43px; | |
| 35 width: 140px; | |
| 36 height: 100px; | |
| 37 border: 2px solid blue; | |
| 38 } | |
| 39 </style> | |
| 40 </head> | |
| 41 <body> | |
| 42 <div id="rectangle"> | |
| 43 X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X X
X X X X X | |
| 44 </div> | |
| 45 | |
| 46 <div id="page"> | |
| 47 <div id="border1"></div> | |
| 48 <div id="region1" class="region"></div> | |
| 49 <div id="border2"></div> | |
| 50 <div id="region2" class="region"></div> | |
| 51 </div> | |
| 52 <p style="margin-top: 50px;">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 inline c
ontent should flow inside the blue ractangles, the overflow should be pushed dow
n below the last region's content box, which means the overflow should start jus
t below the last regions's shape, 10px above the green border box.</p> | |
| 53 <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> | |
| 54 </body> | |
| 55 </html> | |
| OLD | NEW |