Index: LayoutTests/fast/regions/shape-inside/shape-inside-on-second-region-inline-content.html |
diff --git a/LayoutTests/fast/regions/shape-inside/shape-inside-on-second-region-inline-content.html b/LayoutTests/fast/regions/shape-inside/shape-inside-on-second-region-inline-content.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a1135861aeea038ca9510fa334465f10a9df7b44 |
--- /dev/null |
+++ b/LayoutTests/fast/regions/shape-inside/shape-inside-on-second-region-inline-content.html |
@@ -0,0 +1,47 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script> |
+ if (window.internals) |
+ window.internals.settings.setCSSExclusionsEnabled(true); |
+</script> |
+<style> |
+ #content { |
+ font: 20px Ahem, sans-serif; |
+ -webkit-flow-into: flow; |
+ } |
+ .region { |
+ float: left; |
+ margin-right: 10px; |
+ width: 300px; |
+ height: 300px; |
+ background-color: yellow; |
+ overflow: hidden; |
+ border: 1px solid black; |
+ -webkit-flow-from: flow; |
+ } |
+ #shape_inside { |
+ -webkit-shape-inside: rectangle(50px, 0px, 250px, 300px); |
+ background-color: orange; |
+ } |
+</style> |
+</head> |
+<body> |
+ |
+<div class="region"></div> |
+<div id="shape_inside" class="region"></div> |
+<div class="region" style="float: none"></div> |
+ |
+<div id="content"> |
+ Despite the passage of time, Major Quilan still suffers grief and bereavement from the death of his wife, killed during the Chelgrian civil war that resulted from the Culture's |
+ 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, |
+ his "soulkeeper" (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 devicethat can |
+ transport wormholes connected to weapons caches. Quilan is then sent to Masaq' Orbital, ostensibly to persuade Mahrai Ziller to return to his native 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. |
+</div> |
+ |
+<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 rectangle and should flow into the third rectangle without any offset.<br/> |
+<p>Bug <a href="http://webkit.org/b/115456">115456</a>: [CSS Regions][CSS Exclusions] Shape-inside on regions should respect region borders and paddings</p> |
+ |
+</body> |
+</html> |