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

Unified Diff: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-000.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
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-000-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-000.html
diff --git a/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-000.html b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-000.html
new file mode 100644
index 0000000000000000000000000000000000000000..754b1160384d693ca56949dde073b3b3771cea66
--- /dev/null
+++ b/LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-000.html
@@ -0,0 +1,55 @@
+<!DOCTYPE html>
+<style>
+.container {
+ width: 200px;
+ height: 100px;
+ font: 100px/1 Ahem, sans-serif;
+ background-color: red;
+ margin-bottom: 50px;
+ color: green;
+}
+.float-left-long {
+ margin-right: 100px;
+ width: 100px;
+ height: 50px;
+ float: left;
+ background-color: green;
+ shape-outside: inset(0 100% 0 0);
+}
+.float-left-short {
+ width: 100px;
+ height: 50px;
+ float: left;
+ background-color: green;
+ clear: left;
+}
+.float-right-long {
+ margin-left: 100px;
+ width: 100px;
+ height: 50px;
+ float: right;
+ background-color: green;
+ shape-outside: inset(0 0 0 100%);
+}
+.float-right-short {
+ width: 100px;
+ height: 50px;
+ float: right;
+ background-color: green;
+ clear: right;
+}
+</style>
+<body>
+ <p>If two floats affect the same line and the longer float has a shape that makes it short, then the other float should be respected as the offset for the line.</p>
+ <p>You should see two green rectanges. There should be no red.</p>
+ <div class="container">
+ <div class="float-left-long"></div>
+ <div class="float-left-short"></div>
+ X
+ </div>
+ <div class="container" style="text-align: right">
+ <div class="float-right-long"></div>
+ <div class="float-right-short"></div>
+ X
+ </div>
+</body>
« no previous file with comments | « no previous file | LayoutTests/fast/shapes/shape-outside-floats/shape-outside-floats-stacked-000-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698