<html id="hElem" contenteditable=true>
<script>
if (window.testRunner)
     testRunner.dumpEditingCallbacks();
</script>

<body onload="document.getElementById('hElem').focus()">
This test makes sure that we don't scroll unnecessarily to reveal an editable HTML Element.
<br> If the document doesn't scroll, test passes.<br>
<b>This demonstrates a bug: normally, focusing an element will select its contents.</b>
<div style="width:2000px;height:2000px;"></div>
If the document scrolls here, test fails.
</body>
</html>
