Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / input-with-visibility-hidden.html
blob2f7a7ea6106accb67c5ca2c0cb6afce9e5c5f350
1 <!DOCTYPE html>
2 <html>
3 <body style="visibility: hidden;">
4 <div style="visibility: visible;">
5 <p>This tests pasting (InsertHTML) into an input element when body element has visibility set to hidden.
6 You should see PASS below.</p>
7 <input type="text" value="FAIL">
8 <p><script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 var input = document.querySelector('input');
14 input.select();
15 document.execCommand('InsertHTML', false, 'PASS');
17 document.write(input.value);
19 </script></p>
20 </div>
21 </body>
22 </html>