23d1b7aa4f8d587547a1f3e683ad16bae454582f
[WebKit-https.git] / LayoutTests / editing / inserting / insert-div-021.html
1 <html> 
2 <head>
3
4 <style>
5 body {
6     font-size: 24px; 
7 }
8 .editing { 
9     border: 2px solid red; 
10     padding: 12px; 
11 }
12 p {
13     border: 2px solid blue; 
14     padding: 12px; 
15 }
16 br {
17     background-color: green; 
18 }
19
20 </style>
21 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
22
23 <script>
24
25 function editingTest() {
26     for (i = 0; i < 4; i++)
27         moveSelectionForwardByCharacterCommand();
28     deleteCommand();
29     insertParagraphCommand();
30     insertParagraphCommand();
31 }
32
33 </script>
34
35 <title>Editing Test</title> 
36 </head> 
37 <body contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
38
39 Test inserting paragraphs: should see "foo", then an empty blue box, then a blue box with with "bar" in it. Fix for this bug:
40 <a href="rdar://problem/3924579">&lt;rdar://problem/3924579&gt;</a> REGRESSION (Mail): After deleting, hitting return key does not insert visible newline
41
42
43 <div style="height: 12px"></div>
44
45 <span id="test">foo</span><br>bar
46
47 <script>
48 runEditingTest();
49 </script>
50
51 </body>
52 </html>