blob: a2b98fe26287d343f36e3cbb2704a57dc7435eaa [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();
document.execCommand('InsertHTML', false, 'PASS');
document.write(input.value);
</script></p>
</body>
</html>