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

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

Issue 1167543008: Dirty nearby lineboxes if we layout a float rather than trying to work it out later (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 5 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/float-inserted-into-clean-line.html
diff --git a/LayoutTests/fast/block/float/float-inserted-into-clean-line.html b/LayoutTests/fast/block/float/float-inserted-into-clean-line.html
new file mode 100644
index 0000000000000000000000000000000000000000..2a0a708514d96f36f903a939844049ccb92eb00b
--- /dev/null
+++ b/LayoutTests/fast/block/float/float-inserted-into-clean-line.html
@@ -0,0 +1,34 @@
+<!-- <!DOCTYPE html> - This test is run in quirks mode. -->
+<style>
+.float { float: right; }
+</style>
+<script>
+var docElement = document.documentElement;
+var text;
+function runTest() {
+ docElement.appendChild(foo);
+ style = document.createElementNS("http://www.w3.org/TR/REC-html40", "style");
+ docElement.appendChild(style);
+ text = document.createTextNode("uuO,*MkR41 KE? , Wm?_8)}ej 0r{H!= ^.Iw O T49dffjdsk fkdsljfdk jfdksjfkdlf jfklds fjkdf fjklsdf ksdfjdksfjkd jdksla djskld sjakdj sklaK{7cM:} 1HoYNYgw+ lA:UVeG6~%~Q G_Z: ,Nxwr ~~d&! ILugpV4yR 7Q=zX iFhmm2 ;WSubT4o0 t` -F=. qsDYER U6Pm({x g=Q O, .V Au : ] ;/X57^{ k14[1p%{))kT-X. 1h%{T J$%~ u@ hHcWwy`CO($3Dd");
+ docElement.appendChild(text);
+ form = document.createElement("form");
+ form.setAttribute("class", "float");
+ docElement.appendChild(form);
+ setTimeout("attemptToCrash()");
+}
+document.addEventListener("DOMContentLoaded", runTest, false);
+function attemptToCrash() {
+ caption = document.createElement("figcaption");
+ caption.setAttribute("class", "float");
+ style.appendChild(caption);
+ span = document.createElement("span");
+ foo.parentNode.appendChild(span);
+}
+</script>
+<foo id="foo" data-expected-height=0></foo>
+<p>crbug.com/449986: A float inserted into a clean line should dirty the line otherwise it may avoid layout. </p>
+<div id="result">Test passes if it does not crash.</div>
+<script src="../../../resources/check-layout.js"></script>
+<script>
+ checkLayout("foo", document.getElementById("result"));
+</script>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/block/float/float-inserted-into-clean-line-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698