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 class=
"pad-all"><input type=
"file"/></span>
27 <span class=
"pad-top"><input type=
"file"/></span>
29 <span class=
"bor-all"><input type=
"file"/></span>
30 <span class=
"bor-top"><input type=
"file"/></span>
32 <span class=
"pad-all bor-all"><input type=
"file"/></span>
33 <span class=
"pad-all bor-top"><input type=
"file"/></span>
35 <span class=
"pad-top bor-all"><input type=
"file"/></span>
36 <span class=
"pad-top bor-top"><input type=
"file"/></span>