Skip to content

Commit

Permalink
fix(typography): use font-smoothing on safari
Browse files Browse the repository at this point in the history
  • Loading branch information
borisdiakur committed Jul 12, 2022
1 parent c2dd94c commit 8af6e8f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/liquid/global/styles/typography/textRendering.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ body {
text-rendering: var(--ld-text-rendering, geometricPrecision);

/*
The text-rendering prop is not suported on FF. In order to get close
to a similar rendering result with FF (on OSX at least) we also enable
font-smoothing, which is not standards conform and not on the standards
track anymore.
The text-rendering prop is not suported on FF nor on Safari.
In order to get close to a similar rendering results we also
enable font-smoothing, which is not standards conform and not
on the standards track anymore.
*/
-webkit-font-smoothing: var(--ld-text-rendering, antialiased);
-moz-osx-font-smoothing: var(--ld-text-rendering, grayscale);

/*
Expand Down

0 comments on commit 8af6e8f

Please sign in to comment.