68e071b35e7d3097088c3136498b7c03d3d41503
[WebKit-https.git] / LayoutTests / editing / deleting / 5890684.html
1 <div id="description">This tests for a bug where deleting a line break would change the size of monospace text.  Below you should see "helloworld" all in the same font.</div>
2 <div id="edit" style="font-family:monospace;" contenteditable="true">hello<div id="world">world</div></div>
3
4 <script>
5 if (window.layoutTestController)
6     window.layoutTestController.dumpAsText();
7 div = document.getElementById("world");
8 window.getSelection().setPosition(div, 0);
9 document.execCommand("Delete");
10 if (window.layoutTestController)
11     document.body.innerText = document.getElementById("description").innerText + "\n" + document.getElementById("edit").innerHTML;
12 </script>