<input type=file> no longer respects @size

RESOLVED INVALID

Status

()

defect
RESOLVED INVALID
6 years ago
6 years ago

People

(Reporter: MattN, Unassigned)

Tracking

({regression})

22 Branch
Points:
---

Firefox Tracking Flags

(firefox22 affected)

Details

(URL)

Attachments

(1 attachment)

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.
Attachment #732686 - Attachment filename: file_857463.txt → file_857463.htm
Attachment #732686 - Attachment mime type: text/plain → text/html
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
Last Resolved: 6 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.