Skip to content

Commit

Permalink
do not specify anti-aliasing (#8689)
Browse files Browse the repository at this point in the history
specifying the anti-aliasing implies we know better than the browser (we
don't).  Specifiying this globally prevents the use of sub-pixel anti-aliasing
where it is available and the browsers text rendering engines are these
days pretty much fantastic that they should not need these hacks.

and for good measure - here is an article from 10 years ago
https://usabilitypost.com/2012/11/05/stop-fixing-font-smoothing/
and the mozilla doc saying do not use it on a public facing web site.
https://developer.mozilla.org/en-US/docs/Web/CSS/font-smooth
  • Loading branch information
jtnord authored Dec 5, 2023
1 parent 0d537d4 commit 62d22f3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions war/src/main/scss/base/_core.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
html {
height: 100%;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
color: var(--text-color);
}
Expand Down

0 comments on commit 62d22f3

Please sign in to comment.