Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / input / reveal-caret-of-multiline-input.html
blobd5e5ba2367336723cee18c38bf2da286a0e98e50
1 <!DOCTYPE html>
2 <head>
3 <script type="text/javascript" src="resources/reveal-utilities.js"></script>
4 </head>
5 <body>
6 <div>When the caret is scrolled out, on starting typing it must be brought to the center of the control.</div>
7 <textarea name="textarea" id="textarea" rows="10" cols="10"></textarea>
8 <script>
10 var textArea = document.getElementById("textarea");
11 textArea.textContent = generateNumbers(0, 30, 2, "\n");
12 textArea.setSelectionRange(0, 0);
13 textArea.focus();
14 textArea.selectionStart = 36;
15 if (window.eventSender)
16 eventSender.keyDown(">");
18 </script>
19 </body>