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