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

Unified Diff: third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html

Issue 2836293003: Let siblings layout if an adjacent float may no longer affect them (Closed)
Patch Set: bug 711938 Created 3 years, 8 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: third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html b/third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html
new file mode 100644
index 0000000000000000000000000000000000000000..10521c0c5428899704de1e88c8b09a2185b61c41
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/margin-top-changes.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<style>
+body
+{
+ margin: 0;
+ padding: 0;
+}
+.div
+{
+ width: 100px;
+ height: 50px;
+}
+#float
+{
+ float: left;
+}
+#inline
+{
+ display: inline-block;
+ background-color:green;
+}
+#positioned
+{
+ position: absolute;
+ background-color: red;
+ z-index: -1;
+}
+</style>
+<div id="positioned" class="div"></div>
+<div id="float" class="div"></div>
+<div id="test">
+ <div id="inline" class="div"></div>
+</div>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+ document.body.offsetTop;
+ float.style["margin-top"] = "-50px";
+ test(() => {
+ assert_equals(document.getElementById("inline").offsetLeft, 0);
+ }, "crbug.com/711938: Sibling elements notice when a float no longer overlaps due to margin top changing.");
+</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698