Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 5131716-3.html
blobbd077006c371e72bc6590c5f49396e6f772a0d66
1 <style>
2 td, tr {
3 border: 1px solid #bbb;
5 </style>
7 <body>
8 <p>This tests clicking to place a caret in the padding of an editable region. The eventSender clicks in the left padding to the left of the third paragraph and the caret should be at the start of that paragraph.</p>
9 <div style="border: 1px solid black; padding: 25px;" contenteditable="true">
10 <div id="p1">Paragraph One.</div>
11 <table id="t1" contenteditable="false" style="border: 1px solid #bbb;"><tr><td>&nbsp;</td><td contenteditable="true">ToDo One.</td></tr></table>
12 <div id="p2">Paragraph Two.</div>
13 </div>
15 <script>
16 if (window.testRunner) {
17 var o = document.getElementById("p2");
18 x = o.offsetParent.offsetLeft + o.offsetLeft - 10;
19 y = o.offsetParent.offsetTop + o.offsetTop + o.offsetHeight / 2;
21 eventSender.mouseMoveTo(x, y);
22 eventSender.mouseDown();
23 eventSender.mouseUp();
25 </script>
26 </body>