Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webkit browsers showing blue text as slightly purple

I can't find any info on this issue in Google, because every result is about the default purple a:visited color. That is NOT the issue here. The issue is with Chrome's default anti-aliasing, on some systems blue text shows up as blueish-purple. If I change the anti-aliasing to -webkit-font-smoothing: antialiased it keeps the correct color, but then the fonts are radically different between Chrome and Firefox. The blue color I'm using is the client's color, so it cannot change to purple like this. I'm hoping somebody has a fix for this.

Here are screenshots from tests I've done:

Google Chrome blue text showing as purple on different systems

EDIT: Just to clarify, this has nothing to do with the default a:visited link color. My blue color is being inherited, but Chrome's anti-aliasing is causing the text to appear purple. Here's an example: http://jsfiddle.net/yvjjxfqt/

like image 637
Gavin Avatar asked Aug 14 '15 19:08

Gavin


People also ask

Why is my Google browser purple?

When you click a result from a Google search, the link turns from blue to purple to indicate you already visited that link. This color-changing behavior is actually a function of your browser, and has nothing to do with Google. To make all the links blue again, you must clear your browser's search history.

Why does my chrome text look weird?

Check Font Settings from Google Chrome Step 1: Open Google Chrome and click on the three-dot menu in the upper right corner. Step 2: Go to Settings and search for Fonts. Step 3: Select Customize Fonts menu. Step 4: You can check font size and select different font styles from the same menu.


1 Answers

It gets solved (at least in my system) setting a transform in the element

a {
    color: #1967b1;
    display: block;
}

a:nth-child(2) {
    transform: rotateX(0deg);
}
<a href="#">This is a link</a>
<a href="#">This is a link</a>

I guess that the rendering in the gpu doesn't have this problem

This is how it looks in my system

zoomed display

Another way to solve it seems to be using opacity

a {
    color: #1967b1;
    opacity: 0.99;
}
<a href="#">This is a link</a>
like image 157
vals Avatar answered Sep 17 '22 15:09

vals