Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / inserting / 4875189-2.html
blobad9c104e695148f2e8cdb03422257e5493b99d22
1 <p>This tests for a bug when replacing the contents of a floating element. Just its contents should be removed during the replace.</p>
2 <div contenteditable="true">This shouldn't be in the bordered div.<div id="div" style="float:left; border: 1px solid blue;">You shouldn't see this.</div></div>
4 <script>
5 var r = document.createRange();
6 var div = document.getElementById("div");
7 r.setStart(div, 0);
8 r.setEnd(div, div.childNodes.length);
9 var selection = window.getSelection();
10 selection.addRange(r);
11 document.execCommand("InsertHTML", false, "This should be in a floating blue bordered div.")
12 </script>