Inability to set the highlighted text to black text on yellow background.

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
RexyDallas

Inability to set the highlighted text to black text on yellow background.

Unread post by RexyDallas » 2018-03-14, 09:51

In Firefox 3.5, there was a contrast check added to text highlighting. This makes it possible for the text highlighting to be clearly visible on backgrounds of similar color. However, if you attempt to set the color to the old default colors, the contrast check will get triggered on most normal backgrounds. The two about:config entries for controlling this are:
ui.textHighlightForeground
ui.textHighlightBackground

The values that should replicate the old default colors are #000000 and #FFFF00, respectively.

Here is a really old MozillaZine forum post related to it: http://forums.mozillazine.org/viewtopic ... &t=1331845

Strangely, if you set text select Foreground and background to those colors, it works just fine.
Last edited by RexyDallas on 2018-03-14, 09:52, edited 1 time in total.

Locked