Index: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-001.html |
diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-001.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-001.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1a1ed806c5f9c0daf80ad0e960986c6417846feb |
--- /dev/null |
+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-001.html |
@@ -0,0 +1,55 @@ |
+<!DOCTYPE html> |
+<style> |
+.container { |
+ width: 200px; |
+ height: 100px; |
+ font: 50px/1 Ahem, sans-serif; |
+ background-color: red; |
+ margin-bottom: 50px; |
+ color: green; |
+} |
+.float-left-outer { |
+ width: 100px; |
+ height: 100px; |
+ float: left; |
+ background-color: green; |
+ shape-outside: inset(50% 0 0 0); |
+} |
+.float-left-inner { |
+ margin-top: 50px; |
+ width: 100px; |
+ height: 50px; |
+ float: left; |
+ background-color: green; |
+ shape-outside: inset(0 100% 0 0); |
+} |
+.float-right-outer { |
+ width: 100px; |
+ height: 100px; |
+ float: right; |
+ background-color: green; |
+ shape-outside: inset(50% 0 0 0); |
+} |
+.float-right-inner { |
+ margin-top: 50px; |
+ width: 100px; |
+ height: 50px; |
+ float: right; |
+ background-color: green; |
+ shape-outside: inset(0 0 0 100%); |
+} |
+</style> |
+<body> |
+ <p>If a shape on a stacked float does not affect the line, then the line should be affected by the shape on the previous stacked float.</p> |
+ <p>You should see two green rectanges. There should be no red.</p> |
+ <div class="container"> |
+ <div class="float-left-inner"></div> |
+ <div class="float-left-outer"></div> |
+ XXXX |
+ </div> |
+ <div class="container" style="text-align: right"> |
+ <div class="float-right-inner"></div> |
+ <div class="float-right-outer"></div> |
+ XXXX |
+ </div> |
+</body> |