1 <p>This tests to see that clicking on content outside of an editable region with -webkit-user-select: ignore doesn't remove the selection from the editable region. To run it manually, click on the button. The editable region should not be focused, but the text inside of it should be selected.
</p>
2 <input id=
"button" type=
"button" style=
"-webkit-user-select: ignore;" value=
"Click on me">
3 <div id=
"div" contenteditable=
"true">This text should be selected.
</div>
6 div
= document
.getElementById("div");
7 sel
= window
.getSelection();
9 document
.execCommand("SelectAll");
10 if (window
.testRunner
) {
11 button
= document
.getElementById("button");
12 x
= button
.offsetParent
.offsetLeft
+ button
.offsetLeft
+ button
.offsetWidth
/ 2;
13 y
= button
.offsetParent
.offsetTop
+ button
.offsetTop
+ button
.offsetHeight
/ 2;
14 eventSender
.mouseMoveTo(x
, y
);
15 eventSender
.mouseDown();
16 eventSender
.mouseUp();