Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-line-break-before-underlined-content.html
blob0694e2acd14f2ac7c8a5197e44bb3e85f522f4a1
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="container" contenteditable="true">This shouldn't be underlined.<div id="div" style="text-decoration: underline;">This should be underlined.</div></div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
7 var div = document.getElementById("div");
8 var range = document.createRange();
9 range.setStart(div, 0);
10 range.setEnd(div, 0);
11 var sel = window.getSelection();
12 sel.addRange(range);
13 document.execCommand("Delete", false, null);
15 Markup.description('This tests for a bug where underlined content would lose its underlining' +
16 'when deleting the line break before the paragraph that contained it.');
18 Markup.dump('container');
19 </script>
20 </body>
21 </html>