Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / unrendered-005.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     extendSelectionBackwardByCharacterCommand();    
23     moveSelectionForwardByCharacterCommand();    
24 }
25
26 </script>
27
28 <title>Editing Test</title> 
29 </head> 
30 <body>
31 <div contenteditable id="root" class="editing">
32 <span id="test-1">foo</span><span id="test-2" style='display: none;'>bar</span> baz
33 </div>
34
35 <script>
36 runEditingTest();
37 </script>
38
39 </body>
40 </html>