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> |
+ |