OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 .region { |
| 6 font: 20px Ahem, sans-serif; |
| 7 float: left; |
| 8 margin-right: 10px; |
| 9 width: 300px; |
| 10 height: 300px; |
| 11 background-color: yellow; |
| 12 overflow: hidden; |
| 13 border: 1px solid black; |
| 14 } |
| 15 #shape_inside { background-color: orange; } |
| 16 #placeholder { |
| 17 float: left; |
| 18 width: 50px; |
| 19 height: 300px; |
| 20 } |
| 21 </style> |
| 22 </head> |
| 23 <body> |
| 24 |
| 25 <div class="region"> |
| 26 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 |
| 27 interference. Quilan is |
| 28 </div> |
| 29 <div id="shape_inside" class="region"> |
| 30 <div id="placeholder"></div> |
| 31 offered the chance to avenge the lost Chelgrians who died in the civil war a
nd is inducted into a plot to strike back at the Culture. As part of the plot, h
is |
| 32 </div> |
| 33 <div class="region" style="float: none"> |
| 34 "soulkeeper" (a device normally used to store its owner's personality upon t
heir death) is equipped with both the mind of a long-dead Chelgrian general and
a devicethat can |
| 35 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 |
| 36 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. |
| 37 </div> |
| 38 |
| 39 <p>Requires Ahem font. The inline content flows into three regions, a 250x300px
rectangle shape-inside property with 50px left offset is applied to the second (
orange) region. The content should have a 50px left offset in the orange rectang
le and should flow into the third rectangle without any offset.<br/> |
| 40 <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> |
| 41 |
| 42 </body> |
| 43 </html> |
OLD | NEW |