Closed Bug 371487 Opened 17 years ago Closed 17 years ago

Selected item in <select> should be gray when the <select> doesn't have focus

Categories

(Core :: Layout: Form Controls, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Unassigned)

References

()

Details

Attachments

(1 file)

Bug 371485 changed the selected item color to a darker blue, making Firefox match Safari for focused <selects>.  I think this color stands out too much, and that we should follow Safari by making non-focused <selects> use gray for selected items.

For example, on https://bugzilla.mozilla.org/query.cgi?format=advanced, "DUPLICATE" is dark blue when you first load the page in Firefox trunk, but light gray when you first load the page in Safari.
Oops, that's bug 371053, not bug 371485.
Blocks: 371053
No longer blocks: 371485
We have -moz-mac-secondaryhighlight for selected but non-focused treerows et al, that could probably be used.
Attached patch demo patchSplinter Review
This is how it could be done. Note that this isn't really ready for review -- you'll need an ifdef so win/nix doesn't get the style rules (ugly). I can also imagine that Josh have some plans for this.
I think windows uses -moz-cellhighlight for selected and non-focused treecells. That could probably be used, but then win/nix people have to be convinced that they want it for html selects (from what I heard IE7 doesn't have it).
Comment on attachment 256325 [details] [diff] [review]
demo patch

Hmm... this will of course not work if you have an optgroup...
You could use the ' ' combinator instead of '>' to deal with optgroups, no?
This is fixed by bug 412281
Status: NEW → RESOLVED
Closed: 17 years ago
Depends on: 412281
Resolution: --- → FIXED
Josh/Colin: will bug 54488 make this work correctly for cases where they are foucsed and the app or the window goes to the background, or do we need a new (Cocoa Widget?) bug on that?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: