Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Unified Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-001.html

Issue 149513005: Stacked floats with shape-outside should allow inline content to interact with the non-outermost fl… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Replace nullptr with 0 to make linux build happy Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698