blob: 838e932252ce647dc5f00f63e82a588ec6af4b1d [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p tabindex="1">This tests moving the focus from a select element while its popup menu is open. WebKit should dismiss the popup.</p>
<select onmousedown="moveFocus()">
<option>Click here</option>
<option>You should see this</option>
</select>
<div id="result">PASS</div>
<script> document.querySelector('p').focus(); </script>
</body>
</html>