Closed
Bug 445258
Opened 18 years ago
Closed 7 months ago
Selected text highlight color does not contrast with foreground or background color
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: ryanmcgeary, Unassigned)
References
()
Details
Attachments
(4 files)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
On sites with a dark background and a light foreground color, highlighted text does not contrast enough with the highlight color. It looks like the same highlight color is used regardless of fg or bg color.
Reproducible: Always
Can you please provide a URL for such a case?
Also, related to bug 255941 (comment 18)?
Hasham, No problem. Here's an URL that exhibits the behavior:
http://www.eyestreet.com/~rmcgeary/test-highlight-ff3.html
Hasham, It might be related to comment 18 on bug 255941, but that comment looks too ambiguous and outdated for me to know for sure.
Both IE and Safari change the highlight color when the text colors change, so I just assumed this was an oversight in FF. If nothing else, it is a bit of an accessibility issue.
RMM, thanks for your quick response! I don't think this could be a dupe of bug 255941 because that one requires using the find feature whereas this one uses the mouse. This is very similar to bug 56314 however. Since the last comment in that bug says to start new bugs for additional problems, I will confirm this one.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9) Gecko/2008061004 Firefox/3.0
Additionally, this appears to be a Mac only problem. On XP (FF2 and FF3), the highlight color is dynamic based on the background color. On OS-X (10.5), it isn't. Attachment coming up.
Comment 9•18 years ago
|
||
This really needs to be fixed. Occasionally I run into sites where I need to copy something, and on some of them it's nearly impossible to see what I'm highlighting.
Comment 10•18 years ago
|
||
This is very visible on https://addons.mozilla.org/en-US/firefox/ -- the heading "Firefox Add-ons" and the subheading "Add-ons extend Firefox, letting you personalize your browsing experience..." have a background (in this case an image, https://addons.mozilla.org/img/brandbanner-bg.png) almost indistinguishable from the selection colour.
Updated•18 years ago
|
Assignee: nobody → joshmoz
Component: General → Widget: Cocoa
Product: Firefox → Core
QA Contact: general → cocoa
Version: unspecified → Trunk
Comment 11•16 years ago
|
||
The relevant code in nsTextPaintStyle::InitSelectionColors is:
3241 // On MacOS X, we don't exchange text color and BG color.
3242 if (mSelectionTextColor == NS_DONT_CHANGE_COLOR) {
etc.
And the reason for that is that on Mac the default selection background has insufficient contrast with white (the default web page background), so most selections would get reversed if the reversal happened on Mac. See the discussion in bug 56314.
Updated•4 years ago
|
Severity: normal → S3
Comment 12•7 months ago
|
||
A lot has changed since this was filed. Firefox currently behaves exactly the same as Safari in terms of highlight color.
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•