4 -webkit-user-select: none;
10 <script src=
"../../resources/js-test.js"></script>
12 <p id=
"description"></p>
15 <li>Click text input to focus it
</li>
16 <li>Hit Ctrl+A to select contents of text input
</li>
18 <input id=
"sample" value=
"foobar">
21 description('Tests user-select:none doesn\'t affect select()');
22 function $(id
) { return document
.getElementById(id
); }
24 var sample
= $('sample');
27 shouldBe('sample.selectionStart', '0');
28 shouldBe('sample.selectionEnd', 'sample.value.length');
30 if (window
.testRunner
)
31 $('container').outerHTML
= '';