Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / deleting / deleting-line-break-preserves-underline-color.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="div" contenteditable="true"><div>This should not be underlined.</div><span style="text-decoration: underline; color: blue;"><span style="color:red;">This should be underlined.</span></span></div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
7 Markup.description("This test for a bug moving a paragraph of underlined text.  The text should look the same before and after the deletion.");
8
9 var div = document.getElementById("div");
10 var sel = window.getSelection();
11
12 Markup.dump('div', 'Before');
13
14 sel.collapse(div, 0);
15 sel.modify("move", "forward", "paragraphBoundary");
16 sel.modify("move", "forward", "character");
17 document.execCommand("Delete");
18
19 Markup.dump('div', 'After');
20 </script>
21 </body>
22 </html>