Reviewed by me
[WebKit-https.git] / LayoutTests / editing / selection / unrendered-003.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: solid red 50px;
7     font-size: 24px; 
8     line-height: 48px; 
9     padding: 24px; 
10     margin: 64px;
11     width: 600px; 
12 }
13 </style>
14 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
15
16 <script>
17
18 function editingTest() {
19     var elem = document.getElementById("test-2");
20     var selection = window.getSelection();
21     selection.setPosition(elem.firstChild, 2);
22     extendSelectionForwardByCharacterCommand();    
23 }
24
25 </script>
26
27 <title>Editing Test</title> 
28 </head> 
29 <body>
30 <div contenteditable id="root" class="editing">
31 <span id="test-1">foo</span><span id="test-2" style='display: none;'>bar</span> baz
32 </div>
33
34 <script>
35 runEditingTest();
36 </script>
37
38 </body>
39 </html>