Open Bug 765660 Opened 12 years ago Updated 3 years ago

The 'selected items/text' color is changed if the contrast is arbitrarily deemed to be insufficient.

Categories

(Core :: DOM: Selection, enhancement, P5)

x86_64
Windows 7
enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: whos_the_kingpins_daddy, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Build ID: 20120614114901

Steps to reproduce:

Firefox automatically changes the color scheme of the selected text if the current selection color scheme will not give enough contrast.

The behavior I dislike is described quite clearly by me in the following support thread (which I started):
https://support.mozilla.org/en-US/questions/929114

To reproduce this behavior, one must only set the operating system's selected items colors to lime green text on an off-black background.

The section of Firefox source code that I believe addresses this behavior is here:
https://mxr.mozilla.org/mozilla-central/source/layout/generic/nsTextFrameThebes.cpp#3349



Actual results:

Firefox changes both the color of the selected text, as well as the selected text background, to something that does not match the colors set in the operating system.


Expected results:

I propose that this behavior be enabled by default but not forced.  I would like to have a way of disabling it.

I propose that this behavior be given a Boolean switch in about:config.  If for some reason there must be more that two possible values, then using an Integer will be fine.

I propose that the key name be "ui.ensure_sufficient_contrast" or "browser.ui.ensure_sufficient_contrast" or something like that.

I propose that the default value be set to "true".
Severity: normal → enhancement
Component: Untriaged → Selection
Product: Firefox → Core
QA Contact: untriaged → selection
Version: 13 Branch → Trunk

Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.

If you have reason to believe this is wrong (especially for the severity), please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.