| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <style> | 2 <style> |
| 3 input { | 3 input { |
| 4 border: 5px solid salmon; | 4 border: 5px solid salmon; |
| 5 } | 5 } |
| 6 input::-webkit-file-upload-button { | 6 input::-webkit-file-upload-button { |
| 7 display: none; | 7 display: none; |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 Tests that a display:none upload button works. | 10 Tests that a display:none upload button works. |
| 11 <input type="file"> | 11 <input type="file"> |
| 12 <script src="../../js/resources/js-test-pre.js"></script> | 12 <script src="../../js/resources/js-test-pre.js"></script> |
| 13 <script> | 13 <script> |
| 14 // FIXME: The text inside the file input should give the input a contentHeight | 14 // FIXME: The text inside the file input should give the input a contentHeight |
| 15 // even when there's no upload button. | 15 // even when there's no upload button. |
| 16 // https://bugs.webkit.org/show_bug.cgi?id=109104 | 16 // https://bugs.webkit.org/show_bug.cgi?id=109104 |
| 17 shouldBeTrue("document.querySelector('input').offsetHeight > 10"); | 17 shouldBeTrue("document.querySelector('input').offsetHeight > 10"); |
| 18 </script> | 18 </script> |
| 19 <script src="../../js/resources/js-test-post.js"></script> | |
| OLD | NEW |