Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / input-with-display-none-div.html
blob51a5f8e0ecd3a6f8284e4ea65f903ed11a3f7986
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style type="text/css">
5 div { display: none; }
6 </style>
7 </head>
8 <body>
9 <p>This tests pasting (InsertHTML) into an input element with a CSS rule div { display: none}.
10 You should see PASS below.</p>
11 <input type="text" value="FAIL">
12 <p><script>
14 if (window.testRunner)
15 testRunner.dumpAsText();
17 var input = document.querySelector('input');
18 input.focus();
19 input.select();
20 document.execCommand('InsertHTML', false, 'PASS');
22 document.write(input.value);
24 </script></p>
25 </body>
26 </html>