Closed Bug 318751 Opened 19 years ago Closed 18 years ago

<input type=file> are not displayed

Categories

(Core :: Layout: Form Controls, defect)

1.8 Branch
x86
Windows Server 2003
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jpiper, Unassigned)

References

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 I have an XBL binding in userContent.css that clears the accesskey attribute on any element that sets it. Depending on the selector I use, <input type=file> will not display. It does not matter if the <input> sets its accesskey attribute. This selector does not work: *[accesskey] { -moz-binding: url("http://localhost/XBL/accesskey.xml#diediedie"); } This one works fine: *[accesskey="f"], *[accesskey="e"], *[accesskey="v"], *[accesskey="g"], *[accesskey="b"], *[accesskey="t"], *[accesskey="h"], *[accesskey="d"] { -moz-binding: url("http://localhost/XBL/accesskey.xml#diediedie"); } This also works fine, however it applies to ANY <input type=file>: *[accesskey] { background: #f00; } I uninstalled the previous version of Firefox before installing 1.5, and created a new profile. Reproducible: Always Steps to Reproduce:
Did this work in 1.0.x?
I don't know for certain. I used a Greasemonkey script to do this in 1.0.x. PortableFirefox 1.0.7 exhibits the same behavior, though. http://johnhaller.com/jh/mozilla/portable_firefox/
Seems like your problem might be better solved by going to about:config and setting the ui.key.generalAccessKey pref to 0.
Component: General → Layout: Form Controls
Product: Firefox → Core
QA Contact: general → layout.form-controls
Version: unspecified → 1.8 Branch
Yes, I used to do that. Unfortunately that affects access keys in chrome, as well.
The problem is that your CSS is applying to the anonymous content, and that XBL and native anonymous content really don't mix.
Depends on: 286895
Okay, so input[accesskey] was matching the anonymous text box inside the <input type="file">. It works as expected when I change the rule from my userContent.css to this: input[accesskey] { -moz-binding: url("http://localhost/XBL/accesskey.xml#diediedie"); } input[type="file"] > input { -moz-binding: none; }
Fixed by checkin for bug 286895.
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: