Chromium Code Reviews| 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..2d9b381331e486699ccb1649022a8cf3205943a3 |
| --- /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> |
| +.f { |
|
esprehn
2015/12/11 10:48:54
.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", "f"); |
| + firstSpan.appendChild(document.createTextNode("e")); |
| + var secondSpan = document.createElement("span"); |
| + secondSpan.setAttribute("class", "f"); |
| + 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> |
| + |