blob: 51a5f8e0ecd3a6f8284e4ea65f903ed11a3f7986 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
div { display: none; }
</style>
</head>
<body>
<p>This tests pasting (InsertHTML) into an input element with a CSS rule div { display: none}.
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();
input.select();
document.execCommand('InsertHTML', false, 'PASS');
document.write(input.value);
</script></p>
</body>
</html>