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

Unified Diff: third_party/WebKit/LayoutTests/fast/text/whitespace-created-when-siblings-added-back-to-front.html

Issue 1461773002: Ensure text nodes get an object if we're unsure that they will be collapsed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated Created 5 years 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: third_party/WebKit/LayoutTests/fast/text/whitespace-created-when-siblings-added-back-to-front.html
diff --git a/third_party/WebKit/LayoutTests/fast/text/whitespace-created-when-siblings-added-back-to-front.html b/third_party/WebKit/LayoutTests/fast/text/whitespace-created-when-siblings-added-back-to-front.html
new file mode 100644
index 0000000000000000000000000000000000000000..d8a4340143843637bd6e638244691f6aad836eb9
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/text/whitespace-created-when-siblings-added-back-to-front.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<style>
+.float-left {
+ float: left;
+}
+</style>
+<p id="p"></p>
+<script>
+window.onload = function (e) {
+ document.body.offsetTop;
+ var p = document.getElementById('p');
+ var firstSpan = document.createElement("span");
+ firstSpan.setAttribute("class", "float-left");
+ firstSpan.appendChild(document.createTextNode("e"));
+ var secondSpan = document.createElement("span");
+ secondSpan.setAttribute("class", "float-left");
+ secondSpan.appendChild(document.createTextNode("x"));
+
+ p.appendChild(document.createTextNode("t"));
+ p.appendChild(firstSpan);
+ p.appendChild(document.createTextNode(" "));
+ p.appendChild(secondSpan);
+ p.appendChild(document.createTextNode("t"));
+
+
+};
+</script>
+<p>crbug.com/556733: Ensure whitespace gets created when we attached siblings from back to front. There should be a space between the t and the t.</p>
+

Powered by Google App Engine
This is Rietveld 408576698