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

Unified Diff: LayoutTests/fast/inline/continuation-inlines-inserted-in-reverse-after-block.html

Issue 68013006: Fix render tree construction when inlines are inserted in reverse after a block in a continuation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adding NeedsRebaseline for table test Created 7 years, 1 month 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/inline/continuation-inlines-inserted-in-reverse-after-block.html
diff --git a/LayoutTests/fast/inline/continuation-inlines-inserted-in-reverse-after-block.html b/LayoutTests/fast/inline/continuation-inlines-inserted-in-reverse-after-block.html
new file mode 100644
index 0000000000000000000000000000000000000000..9b179fd9cc32b4d68af0292a2efec238baa1277d
--- /dev/null
+++ b/LayoutTests/fast/inline/continuation-inlines-inserted-in-reverse-after-block.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<div id="console"></div>
+
+<span id="container"></span>
+<span id="reference"><div></div><span>1,</span><span>2,</span><span>3,</span><div></div></span>
+
+<script>
+ description('You should see two lines, both with 1,2,3.');
+ var last;
+
+ function insert(tagName, id)
+ {
+ last = container.insertBefore(document.createElement(tagName), last);
+ if (id)
+ last.id = id;
+ getComputedStyle(last).color; // attach.
+ return last;
+ }
+
+ var container = document.getElementById('container');
+ var div = container.appendChild(document.createElement('div'));
+ getComputedStyle(div).color; // attach.
+
+ // This inserts the elements in the reverse order they appear in the DOM
+ // calling layout()
+ insert('div');
+ insert('span', 3).textContent = '3,';
+ insert('span', 2).textContent = '2,';
+ insert('span', 1).textContent = '1,';
+ shouldBeGreaterThanOrEqual("document.getElementById('3').offsetLeft", "document.getElementById('2').offsetLeft");
+ shouldBeGreaterThanOrEqual("document.getElementById('2').offsetLeft", "document.getElementById('1').offsetLeft");
+</script>

Powered by Google App Engine
This is Rietveld 408576698