OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <style> | |
5 .shape-outside { | |
6 float: left; | |
7 width: 100px; | |
8 height: 100px; | |
9 background-color: green; | |
10 shape-outside: rectangle(0px, 0px, 50%, 100%); | |
11 } | |
12 #content { | |
13 font: 25px/1 Ahem, sans-serif; | |
14 -webkit-flow-into: flow; | |
15 } | |
16 #region { | |
17 position: absolute; | |
18 top: 0px; | |
19 left:0px; | |
20 width: 200px; | |
21 -webkit-flow-from: flow; | |
22 } | |
23 </style> | |
24 </head> | |
25 <body> | |
26 <div id="region"></div> | |
27 <div id="content"></div> | |
28 </body> | |
29 | |
30 <script> | |
31 document.body.offsetTop; // Force layout | |
32 var div = document.getElementById('content'); | |
33 div.innerHTML = '<p><div class="shape-outside"></div>XXXX XXXX XXXX XXXX</p>
'; | |
34 </script> | |
35 | |
36 <p style="margin-top: 150px;"> | |
37 There is a green left floating container with shape-outside (50px wide, 100p
x tall) and inline content (black rectangle). The whole content flows into a reg
ion. | |
38 The black rectangle should respect the shape-outside, thus the black rectang
le should have 50px left offset, which is represented by the green rectangular a
rea. | |
39 </p> | |
40 <p>Bug <a href="http://webkit.org/b/114829">114829</a>: [CSS Regions][CSS Shapes
] Content in region doesn't respect shape-outside after initial layout pass</p> | |
41 </html> | |
OLD | NEW |