Closed Bug 857463 Opened 10 years ago Closed 10 years ago
<input type=file> no longer respects @size
(Core :: Layout: Form Controls, defect)
(Reporter: MattN, Unassigned)
939 bytes, text/html
Since the recent switch to the new <input type=file> without the textbox, the @size attribute seems to be ignored on these elements. Websites such as BMO where I could previously see the entire file name of the selected file, now are truncated to the new default label size despite the increased size specified by the author. I propose that we keep the same overall width of <input type=file> as before the change by honoring the @size attribute for the label. We can still use an ellipsis when the file name is too long for the specified size. Webpages are already accustomed to our previous width so this should also improve compatibility with them. See also bug 290327 for issues related to using CSS widths.
10 years ago
Attachment #732686 - Attachment filename: file_857463.txt → file_857463.htm
Attachment #732686 - Attachment mime type: text/plain → text/html
10 years ago
Using @size was a Firefox only thing. All other browser simply have a working width. I have a patch that does that for <input type=file> and should hopefully make @size useless for it. See bug 52500.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.