Open Bug 1928076 Opened 6 days ago Updated 5 days ago

Overriding color for an anchor element is a default color for text when anchor has "color: inherit;" style

Categories

(Core :: CSS Parsing and Computation, defect)

Firefox 132
defect

Tracking

()

UNCONFIRMED

People

(Reporter: smitsyn, Unassigned)

Details

Attachments

(1 file)

Attached file color-inherit.html

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

Steps to reproduce:

  1. In settings, search for color, click on "Manage colors..." button, ensure that all colors are different. By default, text color is black and unvisited link color is blue.

  2. Set "Override the color specified by the page..." to "Always"

  3. Go back to settings; in "Website appearance" settings, use "Automatic" radio button.

  4. Open the attached "color-inherit.html"

Actual results:

The second line is a link, but it is colored with default color for text (black) instead of default color for links (blue).

If a link (anchor element) has "color: inherit;" attribute, it's color is the default color for a text instead of a link.

Expected results:

In the attached file, the second line should be blue.

The same thing also persists with disabled color overriding, but looks like it works as intended and is consistent with Chrome. But if color overriding is turned on, all links should be default-colored irrespective of their color style.

This is somewhat important for me because I sometimes turn on and off color overriding, and it doesn't always work properly. There's even an addon for that ( https://addons.mozilla.org/ru/firefox/addon/toggleglobalcolors/ ), and might be many more; that's just what I use.

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

I get the same behaviour on both Chrome and Firefox - the second link is black coloured.

(In reply to Mayank Bansal from comment #2)

I get the same behaviour on both Chrome and Firefox - the second link is black coloured.

I meant only mode where bg, text and link colours are overridden to their default values. I'm sorry but couldn't find the feature in Chrome where you can override pages' colours - is there one? I mean without extensions.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: