Open Bug 1853135 Opened 2 years ago Updated 2 years ago

Link color override ignored when color:highlight is used in css

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 117
defect

Tracking

()

People

(Reporter: camel.rd, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0

Steps to reproduce:

In settings -> manage colors
Override the colors specified by the page with your selections above = Always
changed Link colors to my prefered

Actual results:

mostly it works as expected unless in CSS color:highlight is used
for example github.com uses color:highlight for links
and links are colored dark blue instead of using colors defined in Settings -> Manage colors

Expected results:

all links should be colored using colors defined in Settings -> Manage colors with overrides enabled
color:highlight should not impact link coloring

The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

Following the reporter's steps of with the attached test case, by:

  1. Launch the test case and observe link colors
  2. Go to Preferences - Manage Colors
  3. Set link colors to something non-default
  4. Set "Override the colors specified by the page with your selections above" to Always
  5. Observe link colors again

I can confirm that color: Highlight & color: MarkText links do not change in color on 118.
Both happen to be System Colors.

Severity: -- → S3

This is per spec. hcm respects all system colors (including Highlight).

You can fix this with a user stylesheet like a { color: LinkText !important; } a:active { color: ActiveText !important } a:visited { color: VisitedText !important }.

Blocks: hcm
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: