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 font: 20px Ahem, sans-serif; |
| 11 -webkit-flow-into: flow; |
| 12 } |
| 13 .region { |
| 14 float: left; |
| 15 margin-right: 10px; |
| 16 width: 300px; |
| 17 height: 300px; |
| 18 background-color: yellow; |
| 19 overflow: hidden; |
| 20 border: 1px solid black; |
| 21 -webkit-flow-from: flow; |
| 22 } |
| 23 #shape_inside { |
| 24 -webkit-shape-inside: rectangle(50px, 0px, 250px, 300px); |
| 25 background-color: orange; |
| 26 } |
| 27 </style> |
| 28 </head> |
| 29 <body> |
| 30 |
| 31 <div id="shape_inside" class="region"></div> |
| 32 <div class="region" style="float: none;"></div> |
| 33 |
| 34 <div id="content"> |
| 35 <p>Despite the passage</p> of time, Major Quilan still suffers grief and ber
eavement from the death of his wife, killed during the Chelgrian civil war that
resulted from the Culture's interference. |
| 36 <p>Quilan is offered the chance to avenge the lost Chelgrians who died
in the civil war and is inducted into a plot to strike back at the Culture.</p> |
| 37 <p>As part of the plot, his |
| 38 <p>"soulkeeper"</p> |
| 39 (a device normally used to store its owner's personality upon their
death) is equipped with both the mind of a long-dead Chelgrian general and a dev
ice that can transport wormholes connected to weapons caches. Quilan is then sen
t to Masaq' Orbital, ostensibly to persuade Mahrai Ziller to return to his nativ
e Chel but is in reality on a suicide mission to destroy the Orbital's Hub Mind.
To protect him from detection at Masaq', Quilan's memory is selectively blanked
until he reaches his target. |
| 40 </p> |
| 41 </p> |
| 42 </div> |
| 43 |
| 44 <p>Requires Ahem font. The block content - contains multiple nested blocks - flo
ws into two regions, a 250x300px rectangle shape-inside property with 50px left
offset is applied to the first (orange) region. The content should have a 50px l
eft offset in the orange rectangle and should flow into the second rectangle wit
hout any offset.<br/> |
| 45 <p>Bug <a href="http://webkit.org/b/115456">115456</a>: [CSS Regions][CSS Exclus
ions] Shape-inside on regions should respect region borders and paddings</p> |
| 46 |
| 47 </body> |
| 48 </html> |
OLD | NEW |