Missing cursor/caret showing in search field on google.com
[WebKit-https.git] / LayoutTests / editing / selection / simple-line-layout-caret-is-gone.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that contenteditable returns the correct caret bounds.</title>
5 <style>
6 body {
7     margin: 0px;
8 }
9
10 #editable {
11     -webkit-nbsp-mode: normal !important;
12     -webkit-line-break: auto !important;
13     width: 50px;
14     height: 50px;
15 }
16 </style>
17 </head>
18 <body>
19 <div id=editable contenteditable=true></div>
20 <script>
21 editable.focus();
22 if (window.testRunner)
23     testRunner.dumpAsText();
24 if (window.eventSender) {
25     eventSender.keyDown('\n');
26     eventSender.keyDown('\n');
27 }
28 if (window.internals) {
29         var withTextCaretRect = internals.absoluteCaretBounds();
30     document.body.innerText = withTextCaretRect.top + " " + withTextCaretRect.left + " " + withTextCaretRect.width + " " + withTextCaretRect.height;
31 }
32 </script>
33 </body>
34 </html>