Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-3959464-fix.html
blobe8365f899cb093a18e1a253c158127c458fabc65
1 <html>
2 <head>
3 <style>
4 .editing {
5 border: 2px solid red;
6 padding: 12px;
7 font-size: 24px;
9 .explanation {
10 border: 2px solid blue;
11 padding: 12px;
12 font-size: 24px;
13 margin-bottom: 24px;
15 </style>
16 <script src="../editing.js"></script>
17 <script src="../../resources/dump-as-markup.js"></script>
18 <script>
20 function editingTest() {
21 for (i = 0; i < 4; i++)
22 moveSelectionForwardByCharacterCommand();
23 for (i = 0; i < 3; i++)
24 insertParagraphCommand();
25 typeCharacterCommand();
26 extendSelectionBackwardByLineCommand();
27 deleteCommand();
29 Markup.description(document.querySelector('.explanation').textContent);
30 Markup.dump('root');
33 </script>
35 <title>Editing Test</title>
36 </head>
37 <body>
38 <div class="explanation">
39 Should see two blank lines after "foo" each in a separate red box (class=editing).
40 </div>
42 <div contenteditable="true" id="root" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
43 <div id="test" class="editing">foo</div>
44 </div>
46 <script>
47 runEditingTest();
48 </script>
50 </body>
51 </html>