Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / merge-different-styles.html
blob0c99eb464bad64976a843ac808d548cd322031b4
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This places the caret before the 'b' in 'bar' and Deletes. 'foo' and 'bar' should end up on the same line, but neither should change style.</p>
6 <div contenteditable="true">
7 <div>foo</div>
8 <div id="test" style="font-weight:bold">bar</div>
9 </div>
11 <script>
12 var s = window.getSelection();
13 var e = document.getElementById("test");
14 s.collapse(e, 0);
15 document.execCommand("Delete");
16 </script>