summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/editing/pasteboard/input-with-display-none-div.html
blob: 51a5f8e0ecd3a6f8284e4ea65f903ed11a3f7986 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!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>