summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/input/reveal-edit-on-input-vertically.html
blob: 34f140b8a8ff021d09fb86b73ab4aa061c16aba7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<head>
<script type="text/javascript" src="resources/reveal-utilities.js"></script>
<style type="text/css">
/* This is needed for divs percent heights to work. */
html { height:100%; }
body { margin:0; padding:0; height:100%; }
</style>
</head>
<body>
<div>After starting typing in a scrolled out of view editor control, the control is to be brought in the center of the view</div>
<div style="height:200%"></div>
<div>To test manually, scroll the page up to the top, then start typing. Input box should be scrolled into the middle of the view.</div>
<input type="text" name="input" id="input" />
<div style="height:200%"></div>
<div id="results"></div>
<script>

if (window.testRunner)
    testRunner.dumpAsText();
performVerticalScrollingInputTest();
assertInputIsInTheMiddleOfViewport();

</script>
</body>