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

Unified Diff: third_party/WebKit/LayoutTests/fast/block/float/relayout-nested-float-after-line.html

Issue 2686913002: Stay within the containing block when looking for a line to dirty. (Closed)
Patch Set: Created 3 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 | third_party/WebKit/Source/core/layout/line/LineBoxList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/block/float/relayout-nested-float-after-line.html
diff --git a/third_party/WebKit/LayoutTests/fast/block/float/relayout-nested-float-after-line.html b/third_party/WebKit/LayoutTests/fast/block/float/relayout-nested-float-after-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..396d127526b60dcf9623fc62dd353e5911dbb136
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/block/float/relayout-nested-float-after-line.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<p>The word "BONZER" should be adjacent to the hotpink square.</p>
+<div style="position:relative; overflow:hidden;">
+ &nbsp;
+ <div style="float:left; width:100%; height:1px;"></div>
+ <div style="float:left; width:100%;">
+ <div id="innerFloat" style="float:left; width:666px; height:20px; background:hotpink;"></div>
+ <span id="targetSpan">BONZER<br></span>
+ </div>
+</div>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+test(() => {
+ document.body.offsetTop;
+ innerFloat.style.width = "20px";
+ assert_equals(targetSpan.offsetLeft, 20);
+}, "Resize inner float next to line");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/line/LineBoxList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698