blob: 6d9def2aa9e15c9aa6c4732f0c52b47871701ea7 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body style="visibility: hidden;">
<div style="visibility: visible;">
<p>This tests pasting (InsertHTML) into an input element when body element has visibility set to hidden.
You should see PASS below.</p>
<input type="text" value="FAIL">
<p><script>
if (window.testRunner)
testRunner.dumpAsText();
var input = document.querySelector('input');
input.focus();
document.execCommand('InsertHTML', false, 'PASS');
document.write(input.value);
</script></p>
</div>
</body>
</html>