Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / 5240265.html
blobaf90d839893ebc7456d1eb933db3e5072d9704af
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>
5 <script>
6 div = document.getElementById("div");
7 sel = window.getSelection();
8 sel.collapse(div, 0);
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();
18 </script>