OLD | NEW |
| (Empty) |
1 <!DOCTYPE HTML> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 #rectangle { | |
6 font: 16px Ahem, sans-serif; | |
7 -webkit-flow-into: rectangle; | |
8 } | |
9 | |
10 .region { -webkit-flow-from: rectangle; } | |
11 | |
12 #region1 { | |
13 width: 180px; | |
14 height: 100px; | |
15 shape-inside: rectangle(0, 0, 130px, 100px); | |
16 margin-top: 10px; | |
17 } | |
18 #region2 { | |
19 width: 300px; | |
20 height: 150px; | |
21 shape-inside: rectangle(0, 0, 220px, 150px); | |
22 margin-top: 60px; | |
23 } | |
24 #region3 { | |
25 width: 300px; | |
26 height: 50px; | |
27 margin-top: 60px; | |
28 } | |
29 </style> | |
30 </head> | |
31 <body> | |
32 <div id="rectangle"> | |
33 X X X X X | |
34 <p>X X</p> | |
35 <p style="color: green">X X X X X X</p> | |
36 <p style="color: orange">X X X X</p> | |
37 <p>X X X X X X X X<p style="color: yellow">X X X X X X X X X X</p> X X</
p> | |
38 <div style="color: red"> X X X X X X X X X</div> | |
39 </div> | |
40 <div id="page"> | |
41 <div id="region1" class="region"></div> | |
42 <div id="region2" class="region"></div> | |
43 <div id="region3" class="region"></div> | |
44 </div> | |
45 <p>Requires Ahem font. Two different -shape-inside property are applied to t
he first and second region. The third region is a simple region without -shape-i
nside. | |
46 The rectangles should flow through the regions and the shape-insides should
be applied to the first two regions.</p> | |
47 <p> Bug <a href="http://webkit.org/b/107880">107880</a>: Regions should resp
ect shape-inside</p> | |
48 </body> | |
49 </html> | |
OLD | NEW |