OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 if (window.internals) |
| 6 window.internals.settings.setCSSExclusionsEnabled(true); |
| 7 </script> |
| 8 <style> |
| 9 #content { |
| 10 -webkit-flow-into: flow; |
| 11 font: 13px Ahem, sans-serif; |
| 12 line-height: 15px; |
| 13 } |
| 14 .region1 { |
| 15 -webkit-flow-from: flow; |
| 16 width: 200px; |
| 17 height: 200px; |
| 18 border: 5px solid black; |
| 19 border-top: 10px solid green; |
| 20 border-bottom: 15px solid yellow; |
| 21 margin-top: 10px; |
| 22 } |
| 23 .region2 { |
| 24 -webkit-flow-from: flow; |
| 25 width: 400px; |
| 26 height: 400px; |
| 27 border: 15px solid black; |
| 28 border-top: 30px solid green; |
| 29 margin-top: 10px; |
| 30 -webkit-shape-inside: polygon(30px 30px, 380px 380px, 10px 380px); |
| 31 } |
| 32 </style> |
| 33 </head> |
| 34 <body> |
| 35 <div class="region1"></div> |
| 36 <div class="region2"></div> |
| 37 |
| 38 <div id="content"> |
| 39 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... |
| 40 </div> |
| 41 |
| 42 <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> |
| 43 <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> |
| 44 |
| 45 </body> |
| 46 </html> |
OLD | NEW |