4 <title>File input alignment with CSS padding and border
</title>
5 <style type=
"text/css">
11 .pad-all { padding: 10px; }
12 .pad-top { padding-top: 10px; }
13 .bor-all { border: 10px solid DarkGray
; }
14 .bor-top { border-top: 10px solid DarkGray
; }
15 input::-webkit-file-upload-button
{
16 /* Bug is about file name and padding, not button,
17 * and platform-specific button-rendering is flakey.
19 -webkit-appearance: none
;
24 <p>Bug
<a href=
"http://webkit.org/b/109011">109011</a>: File upload control doesn't apply CSS vertical padding or border to file name
</p>
25 <p>For this test to pass, the file name (or
"No file chosen") should line up with the button text below, with CSS padding and borders overall or on the top, and in combinations thereof.
</p>
26 <span><input type=
"file" class=
"pad-all"/></span>
27 <span><input type=
"file" class=
"pad-top"/></span>
29 <span><input type=
"file" class=
"bor-all"/></span>
30 <span><input type=
"file" class=
"bor-top"/></span>
32 <span><input type=
"file" class=
"pad-all bor-all"/></span>
33 <span><input type=
"file" class=
"pad-all bor-top"/></span>
35 <span><input type=
"file" class=
"pad-top bor-all"/></span>
36 <span><input type=
"file" class=
"pad-top bor-top"/></span>