d9c27d73cf320efa783917b83619a04a34bdd6ff
[WebKit-https.git] / LayoutTests / editing / inserting / insert-div-018.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
17 </style>
18 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
19
20 <script>
21
22 function editingTest() {
23     moveSelectionBackwardByCharacterCommand();
24     insertParagraphCommand();
25 }
26
27 </script>
28
29 <title>Editing Test</title> 
30 </head> 
31 <body contenteditable id="root">
32
33 Test inserting paragraphs: should see an empty blue box below "bar"
34
35 <div style="height: 12px"></div>
36
37 bar<div class="editing" id="test">baz</div>
38
39 <script>
40 runEditingTest();
41 </script>
42
43 </body>
44 </html>