5
Autoprefixer
webpack loader为所有css添加autoprefix但是它不会为font-smoothing : antialiased
添加autoprefix。为什么Autoprefixer不会为字体平滑添加前缀
为什么它不为此添加autoprefix?
Autoprefixer
webpack loader为所有css添加autoprefix但是它不会为font-smoothing : antialiased
添加autoprefix。为什么Autoprefixer不会为字体平滑添加前缀
为什么它不为此添加autoprefix?
我猜是因为它是一个供应商(-webkit-)的特定属性。所以没有这个属性的其他前缀。你可以看到,以及在Twitter上的小讨论:https://twitter.com/autoprefixer/status/444429500789841921?lang=nl
发现了另一个网站谁解释用法的更多: https://davidwalsh.name/font-smoothing
TL; DR:
对于你甚至需要另外设置其他厂商(抗锯齿和灰度)
.element {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}