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

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

Issue 1355003002: Floats on clean lines that are dirtied during layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 3 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-subsequently-dirtied-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-subsequently-dirtied.html
diff --git a/LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied.html b/LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied.html
new file mode 100644
index 0000000000000000000000000000000000000000..28d9d96ce4ad2a0c296bd707d123094aa067f2df
--- /dev/null
+++ b/LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied.html
@@ -0,0 +1,28 @@
+<!-- This test happens in quirks mode -->
+<style>
+* { float: left; padding-left: 33554430;}
+</style>
+<body>
+<div> crbug.com/532712 : A float on a clean line that is dirtied again during layout should not cause an assert.</div>
+</body>
+<script>
+if (window.testRunner)
+ testRunner.dumpAsText();
+var docElement = document.documentElement;
+function test() {
+ firstText = document.createTextNode("T");
+ docElement.appendChild(firstText);
+ firstdiv = document.createElement("div");
+ firstdiv.setAttribute("id", "first");
+ firstdiv.setAttribute("data-expected-height", "0");
+ docElement.appendChild(firstdiv);
+ docElement.appendChild(document.createTextNode("E"));
+ docElement.appendChild(document.createElement("div"));
+ docElement.appendChild(document.createTextNode("XT"));
+ setTimeout("boom()");
+}
+function boom() {
+ docElement.removeChild(firstText);
+}
+window.onload = test;
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/block/float/float-on-clean-line-subsequently-dirtied-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698