blob: 4859ec9df10e0be4d22161ab21c8747d955b0166 [file] [log] [blame]
<html>
<head>
<script>
function test() {
if (window.testRunner)
testRunner.dumpAsText();
var tf = document.getElementById('tf');
tf.select();
if (tf.selectionStart == 0 && tf.selectionEnd == 0) { // ;
document.getElementById("result").innerHTML = "PASS";
} else {
document.getElementById("result").innerHTML = "FAIL: selection start is "
+ tf.selectionStart + " and end is " + tf.selectionEnd + ".";
}
}
</script>
</head>
<body onload="test()">
<p>
Tests behavior of select() in case &quot;-webkit-user-select: none&quot;
attribute is specified to the input element. The field should not be selected.
</p>
<p><input type="text" id="tf" value="input text" style="-webkit-user-select: none"></input></p>
<p id="result">TEST NOT RUN YET</p>
</body>
</html>