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

Unified Diff: LayoutTests/fast/block/float/float-on-clean-line.html

Issue 1306733003: Don't add floats on clean lines to new lineboxes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 4 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/block/float/float-on-clean-line-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/block/float/float-on-clean-line.html
diff --git a/LayoutTests/fast/block/float/float-on-clean-line.html b/LayoutTests/fast/block/float/float-on-clean-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..ed2ffb3ee239fe616f2aed79db797355860cae74
--- /dev/null
+++ b/LayoutTests/fast/block/float/float-on-clean-line.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<style>
+ img { padding-right: 100%; height: 20px; }
+ source { padding-right: 1px; }
+ img:nth-child(odd) { width: 5px; }
+ #area { float: right; width: 10px; }
+</style>
+<script src="../../../resources/check-layout.js"></script>
+<script>
+function boom() {
+ firstdiv = document.createElement('div');
+ document.body.appendChild(firstdiv);
+ firstdiv.setAttribute("id", "first");
+ firstdiv.setAttribute("data-expected-height", "0");
+
+ seconddiv = document.createElement('div');
+ document.body.appendChild(seconddiv);
+
+ img = document.createElement('img');
+ document.body.appendChild(img);
+
+ div = document.createElement('div');
+ div.setAttribute('id', 'area');
+ document.body.appendChild(div);
+
+ source = document.createElement('source');
+ document.body.appendChild(source);
+
+ document.body.offsetTop;
+ document.body.removeChild(seconddiv);
+ checkLayout('#first')
+}
+window.onload = boom;
+</script>
+<!-- crbug.com/492918 : Floats on clean lines should stay with them. -->
« no previous file with comments | « no previous file | LayoutTests/fast/block/float/float-on-clean-line-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698