Why Autoprefixer does not add a font smoothing prefix

Autoprefixer loader adds autoprefix for all css, however it does not add autoprefix for font-smoothing : antialiased .

why doesn't he add autoprefix for this?

+5
source share
1 answer

I assume this is a vendor specific attribute (-webkit-). Thus, there are no other prefixes with this attribute. You can see a small discussion on Twitter: https://twitter.com/autoprefixer/status/444429500789841921?lang=nl

Found another site that explains usage more: https://davidwalsh.name/font-smoothing

TL DR:

For other manufacturers, you will need one more setting (smoothing and grayscale)

 .element { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } 
+5
source

Source: https://habr.com/ru/post/1263714/


All Articles