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

Unified Diff: third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-5.html

Issue 2531953002: Detect floats to avoid or clear due to negative margin top (Closed)
Patch Set: bug 666487 Created 4 years 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: third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-5.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-5.html b/third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-5.html
new file mode 100644
index 0000000000000000000000000000000000000000..9e711bd396cc1c8f30cf821752f775e0f303f726
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/avoid-floats-when-negative-margin-top-5.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<style>
+body { margin: 0px; }
+.float { float: left; width: 50px; height: 100px; background: green;}
+.content { overflow: hidden; margin-top: -100px; width: 50px; height: 100px; background: green;}
+.container { width: 100px; background: red;}
+</style>
+<p>crbug.com/666487: There should be a green square below.</p>
+<div class="container">
+ <div>
+ <div class="float"></div>
+ <br clear=all>
+ </div>
+ <div style="position:absolute;"></div>
+ <div class="content" data-offset-x=50></div>
+</div>
+<script src="../../../resources/check-layout.js"></script>
+<script>
+checkLayout('.content');
+</script>

Powered by Google App Engine
This is Rietveld 408576698