Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / focus_editable_html.html
blob8812700c848a12a100429fcf72804052646ac000
1 <html id="hElem" contenteditable=true>
2 <script>
3 if (window.testRunner)
4 testRunner.dumpEditingCallbacks();
5 </script>
7 <body style="overflow:hidden;" onload="document.getElementById('hElem').focus()">
8 This test makes sure that we don't scroll unnecessarily to reveal an editable HTML Element.
9 <br> If the document doesn't scroll, test passes.<br>
10 <b>This demonstrates a bug: normally, focusing an element will select its contents.</b>
11 <div style="width:2000px;height:2000px;"></div>
12 If the document scrolls here, test fails.
13 </body>
14 </html>