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 blue; |
| 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 Despite the passage of time, Major Quilan still suffers grief and bereavemen
t from the death of his wife, killed during the Chelgrian civil war that resulte
d from the Culture's |
| 36 interference. 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
. As part of the plot, |
| 37 his "soulkeeper" (a device normally used to store its owner's personality up
on their death) is equipped with both the mind of a long-dead Chelgrian general
and a devicethat can |
| 38 transport wormholes connected to weapons caches. Quilan is then sent to Masa
q' Orbital, ostensibly to persuade Mahrai Ziller to return to his native Chel bu
t is in reality on a |
| 39 suicide mission to destroy the Orbital's Hub Mind. To protect him from detec
tion at Masaq', Quilan's memory is selectively blanked until he reaches his targ
et. |
| 40 </div> |
| 41 |
| 42 <p>Requires Ahem font. The inline content flows into two regions, a 250x300px re
ctangle shape-inside property with 50px left offset is applied to the first (ora
nge) region. The content should have a 50px left offset in the orange rectangle
and should flow into second rectangle without any offset.<br/> |
| 43 <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> |
| 44 |
| 45 </body> |
| 46 </html> |
OLD | NEW |