OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 #content { | |
6 -webkit-flow-into: flow; | |
7 font: 13px Ahem, sans-serif; | |
8 line-height: 15px; | |
9 } | |
10 .region1 { | |
11 -webkit-flow-from: flow; | |
12 width: 200px; | |
13 height: 200px; | |
14 border: 5px solid black; | |
15 border-top: 10px solid green; | |
16 border-bottom: 15px solid yellow; | |
17 margin-top: 10px; | |
18 } | |
19 .region2 { | |
20 -webkit-flow-from: flow; | |
21 width: 400px; | |
22 height: 400px; | |
23 border: 15px solid black; | |
24 border-top: 30px solid green; | |
25 margin-top: 10px; | |
26 shape-inside: polygon(30px 30px, 380px 380px, 10px 380px); | |
27 } | |
28 </style> | |
29 </head> | |
30 <body> | |
31 <div class="region1"></div> | |
32 <div class="region2"></div> | |
33 | |
34 <div id="content"> | |
35 The Culture and the Idiran Empire are at war in a galaxy-spanning conflict. Horz
a, a mercenary capable of altering his appearance at will (a Changer), is assign
ed the task of retrieving a dispossessed Culture Mind by his Idiran handlers. Th
e Mind, while fleeing attacking Idirans who consider its existence an abominatio
n, has taken... | |
36 </div> | |
37 | |
38 <p style="margin-top: 30px;">Requires Ahem font. There are two regions, there is
a polygon shape-inside on the second region. The shape is positioned and it for
ces the content to be adjusted (pushed down from the top of the shape) inside th
e shape. The content should fill out the first region and it should fill out the
polygon shape on the second region.</p> | |
39 <p>Bug <a href="http://webkit.org/b/117599">117599</a>[CSS Shapes][CSS Regions]
Respect bottom positioned shapes and content adjustment inside shapes</p> | |
40 | |
41 </body> | |
42 </html> | |
OLD | NEW |