Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / inserting / 12882.html
1 <p>This tests for a bug where images with align right/left would fail to be inserted on paste.  You should see a picture of abe in the editable region below, aligned to the right. <b>This demonstrates a bug: the focus halo for the editable region doesn't expand to fit an image with align='right'.</b></p>
2 <div id="div" contenteditable="true">Four score and seven years ago our fathers brought forth on this continent a new nation, conceived in liberty and dedicated to the proposition that all men are created equal.</div>
3
4 <script>
5 var sel = window.getSelection();
6 var div = document.getElementById("div");
7 var text = div.firstChild;
8
9 sel.collapse(text, 30);
10
11 document.execCommand("InsertHTML", false, "<img src='../resources/abe.png' align='right'>");
12 </script>