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

Unified Diff: LayoutTests/fast/block/float/nested-floats-expand-formatting-context.html

Issue 1106533002: Formatting contexts should always expand to enclose floats (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 6 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/block/float/nested-floats-expand-formatting-context.html
diff --git a/LayoutTests/fast/block/float/nested-floats-expand-formatting-context.html b/LayoutTests/fast/block/float/nested-floats-expand-formatting-context.html
new file mode 100644
index 0000000000000000000000000000000000000000..cf13f6b29c1ea44cc4781f6282e60a922db5dc96
--- /dev/null
+++ b/LayoutTests/fast/block/float/nested-floats-expand-formatting-context.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<style>
+#section {
+ overflow: hidden;
+ width: 200px;
+}
+
+#article {
+ background: black;
+ height: 100px;
+}
+
+.item {
+ height: 100px;
+ background: black;
+ padding: 50px;
+}
+
+.float {
+ width: 150px;
+ height: 140px;
+ float: left;
+ background: black;
+}
+</style>
+<html>
+<div id="section">
+ <div id="article">
+ <div>
+ <div class="item">
+ <div class="float"></div>
+ </div>
+ </div>
+ </div>
+</div>
+<p>crbug.com/477076: If a nested float doesn't overhang its container the block setting the formatting context should still expand to include it if necessary. </p>
+

Powered by Google App Engine
This is Rietveld 408576698