blob: ef848cfa5099d03a11be7d919676ef20d16be88f [file] [log] [blame]
<!DOCTYPE HTML>
<style>
input {
border: 5px solid salmon;
}
input::-webkit-file-upload-button {
display: none;
}
</style>
Tests that a display:none upload button works.
<input type="file">
<script src="../../../resources/js-test.js"></script>
<script>
// FIXME: The text inside the file input should give the input a contentHeight
// even when there's no upload button.
// https://bugs.webkit.org/show_bug.cgi?id=109104
shouldBeTrue("document.querySelector('input').offsetHeight > 10");
</script>