Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac Safari Font Rendering changes thinner when any Element on the page gets position:fixed;

The following problem occurs only on Safari for OS X.

My problem is that if I make one Element with position: fixed, it renders the font smaller than when I don't have that Element loaded.

Here's a link to an example of said problem: http://www.noticekom.ch.k1859.ims-firmen.de/home.html

The element is used on 'Home' & 'Agentur'. On both of these sites; the rendering of the text is smaller than others. The fixed position is used to make the effect from the last content on the homepage. When I switch it to position: absolute; the font renders normally, but the effect obviously is not working.

Does anyone know a workaround for that?

like image 288
Pinki Avatar asked Mar 05 '14 17:03

Pinki


1 Answers

body { -webkit-font-smoothing: subpixel-antialiased; }

This made it :)

like image 101
Pinki Avatar answered Nov 13 '22 19:11

Pinki