| 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.setCSSShapesEnabled(true); | 6 window.internals.settings.setCSSShapesEnabled(true); |
| 7 </script> | 7 </script> |
| 8 <style> | 8 <style> |
| 9 #rectangle { | 9 #rectangle { |
| 10 font: 20px Ahem, sans-serif; | 10 font: 20px Ahem, sans-serif; |
| 11 line-height: 20px; | 11 line-height: 20px; |
| 12 -webkit-font-smoothing: none; | 12 -webkit-font-smoothing: none; |
| 13 -webkit-flow-into: flow; | 13 -webkit-flow-into: flow; |
| 14 } | 14 } |
| 15 .region { | 15 .region { |
| 16 -webkit-flow-from: flow; | 16 -webkit-flow-from: flow; |
| 17 width: 200px; | 17 width: 200px; |
| 18 height: 200px; | 18 height: 200px; |
| 19 border: 2px solid green; | 19 border: 2px solid green; |
| 20 padding: 10px; | 20 padding: 10px; |
| 21 } | 21 } |
| 22 #region1 { -webkit-shape-inside: rectangle(50px, 100px, 100px, 100px); } | 22 #region1 { shape-inside: rectangle(50px, 100px, 100px, 100px); } |
| 23 #region2 { | 23 #region2 { |
| 24 margin-top: 10px; | 24 margin-top: 10px; |
| 25 -webkit-shape-inside: rectangle(25px, 100px, 140px, 100px); | 25 shape-inside: rectangle(25px, 100px, 140px, 100px); |
| 26 } | 26 } |
| 27 #border1 { | 27 #border1 { |
| 28 position: absolute; | 28 position: absolute; |
| 29 top: 118px; | 29 top: 118px; |
| 30 left: 68px; | 30 left: 68px; |
| 31 width: 100px; | 31 width: 100px; |
| 32 height: 100px; | 32 height: 100px; |
| 33 border: 2px solid blue; | 33 border: 2px solid blue; |
| 34 } | 34 } |
| 35 #border2 { | 35 #border2 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 50 <div id="page"> | 50 <div id="page"> |
| 51 <div id="border1"></div> | 51 <div id="border1"></div> |
| 52 <div id="region1" class="region"></div> | 52 <div id="region1" class="region"></div> |
| 53 <div id="border2"></div> | 53 <div id="border2"></div> |
| 54 <div id="region2" class="region"></div> | 54 <div id="region2" class="region"></div> |
| 55 </div> | 55 </div> |
| 56 <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> | 56 <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> |
| 57 <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> | 57 <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> |
| 58 </body> | 58 </body> |
| 59 </html> | 59 </html> |
| OLD | NEW |