Closed Bug 1632102 Opened 4 years ago Closed 4 years ago

Links appear in plain text color

Categories

(Core :: CSS Parsing and Computation, defect, P3)

75 Branch
defect

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: erfiaschi, Assigned: emilio)

Details

Attachments

(2 files)

Attached image youtube.png

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

Steps to reproduce:

I set custom background and text colors (but it's the same with default colors) and opened youtube.
It happens on different sites, too.

Actual results:

Links are the color of plain text.

Expected results:

Links should have been recognizable in their own links color.

Please provide exact and clear steps to reproduce which allow someone else to reproduce the same situation, without having to guess or interpret anything. Thanks!

Flags: needinfo?(erfiaschi)

I apologize for the inconvenience. I thought it was clear but, clearly, I was wrong.
Here are the steps.

  1. Open menu and click Options
  2. scroll until colors and click on button
  3. set custom colors (yellow for text, red for links)
  4. uncheck "use system colors"
  5. select always in override mode
  6. enter http://www.youtube.com in address bar and click enter
  7. links display in yellow instead of red.

This is an example as it happens with different colors and different sites. Specific for version 75.
I hope I helped to make things clearer.
Thank you very much for your precious and very appreciated work.

Flags: needinfo?(erfiaschi)

Hello there erfiaschi,

I was able to repro this using your steps on the Nightly 77.0a1 (2020-04-29), beta 76.0 and release 75.0 versions. Indeed it does take the yellow color for links on descriptions on youtube (checked with other sites like cnn.com, foxnews.com and it occurs for some links as well, but a minor percentage than youtube).

Adding a component for this issue in order to get the dev team involved.
If it's not the correct one please feel free to reassign a more appropriate one.

Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Text and Fonts
Ever confirmed: true
Product: Firefox → Core

Thank you very much. I'm glad I've been useful to you, but I'll never be thankful enough for your outstanding work.
I hope you'll sort this bug out easily, as I can confirm it happens on many many different sites.
Hugs to you and all the team!

This seems like a styling issue rather than Layout:Text; moving to CSS Parsing & Computation.

Component: Layout: Text and Fonts → CSS Parsing and Computation

So this is the most reduced test-case: data:text/html,<a href="somewhere"><span style="color: green">Should be... red maybe?</span></a>

Basically those links have nested elements overriding colors. I think right now we override the color: green with the text color, and that's why it ends up looking like text.

I think we should treat it as revert instead, but that's a bit tricky with the special handling we do for color: transparent...

That way elements inside links, form controls, etc have the right
contrast, even if the page overrides the color.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Priority: -- → P3
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/876524e046ea
Only override to default color in high-contrast / forced-colors mode if inheriting from transparent. r=morgan

(In reply to Pulsebot from comment #8)

Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/876524e046ea
Only override to default color in high-contrast / forced-colors mode if
inheriting from transparent. r=morgan

Gah, I just saw it too late, but the commit message is missing a crucial not after if... Oh well :(

The patch does the right thing though ;)

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
QA Whiteboard: [qa-77b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: