| 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 #content { | 9 #content { |
| 10 font: 13px Ahem, sans-serif; | 10 font: 13px Ahem, sans-serif; |
| 11 line-height: 15px; | 11 line-height: 15px; |
| 12 } | 12 } |
| 13 .region1 { | 13 .region1 { |
| 14 width: 200px; | 14 width: 200px; |
| 15 height: 200px; | 15 height: 200px; |
| 16 border: 5px solid black; | 16 border: 5px solid black; |
| 17 border-top: 10px solid green; | 17 border-top: 10px solid green; |
| 18 border-bottom: 15px solid yellow; | 18 border-bottom: 15px solid yellow; |
| 19 margin-top: 10px; | 19 margin-top: 10px; |
| 20 } | 20 } |
| 21 .region2 { | 21 .region2 { |
| 22 width: 400px; | 22 width: 400px; |
| 23 height: 400px; | 23 height: 400px; |
| 24 border: 15px solid black; | 24 border: 15px solid black; |
| 25 border-top: 30px solid green; | 25 border-top: 30px solid green; |
| 26 border-left: 0px; /* FIXME: Content gets extra left offset when there is
left-border on the content box: http://webkit.org/b/117573 */ | 26 border-left: 0px; /* FIXME: Content gets extra left offset when there is
left-border on the content box: http://webkit.org/b/117573 */ |
| 27 margin-top: 10px; | 27 margin-top: 10px; |
| 28 -webkit-shape-inside: polygon(30px 30px, 380px 380px, 10px 380px); | 28 shape-inside: polygon(30px 30px, 380px 380px, 10px 380px); |
| 29 } | 29 } |
| 30 </style> | 30 </style> |
| 31 </head> | 31 </head> |
| 32 <body> | 32 <body> |
| 33 <div id="content"> | 33 <div id="content"> |
| 34 <div class="region1"> | 34 <div class="region1"> |
| 35 The Culture and <p>the Idiran <p>Empire</p> are </p>at war in a galaxy-s
panning conflict. Horza, a mercenary | 35 The Culture and <p>the Idiran <p>Empire</p> are </p>at war in a galaxy-s
panning conflict. Horza, a mercenary |
| 36 </div> | 36 </div> |
| 37 <div class="region2"> | 37 <div class="region2"> |
| 38 <p>capable of altering his appearance</p>at will <p>(a Changer),</p> is
assigned the task of retrieving a dispossessed Culture Mind by his Idiran handle
rs. | 38 <p>capable of altering his appearance</p>at will <p>(a Changer),</p> is
assigned the task of retrieving a dispossessed Culture Mind by his Idiran handle
rs. |
| 39 </div> | 39 </div> |
| 40 </div> | 40 </div> |
| 41 | 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> | 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> | 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 | 44 |
| 45 </body> | 45 </body> |
| 46 </html> | 46 </html> |
| OLD | NEW |